19:00:06 #startmeeting 19:00:06 Meeting started Thu May 24 19:00:06 2018 UTC. The chair is wumpus. Information about MeetBot at http://wiki.debian.org/MeetBot. 19:00:06 Useful Commands: #action #agreed #help #info #idea #link #topic. 19:00:13 hi 19:00:31 hi 19:00:32 hello 19:00:41 lurking 19:00:49 #bitcoin-core-dev Meeting: wumpus sipa gmaxwell jonasschnelli morcos luke-jr btcdrak sdaftuar jtimon cfields petertodd kanzure bluematt instagibbs phantomcircuit codeshark michagogo marcofalke paveljanik NicolasDorier jl2012 achow101 meshcollider jnewbery maaku fanquake promag provoostenator 19:00:57 hi 19:01:01 hi 19:01:32 I guess the topic of priority today is 0.16.1 19:01:44 hi 19:01:50 hello 19:01:56 #topic 0.16.1 19:02:03 there's a few backports left to do 19:02:31 or does #13317 include all of them? 19:02:31 hi 19:02:32 https://github.com/bitcoin/bitcoin/issues/13317 | [0.16.1] Remainig backports by MarcoFalke · Pull Request #13317 · bitcoin/bitcoin · GitHub 19:02:41 wumpus: I left out the qt one 19:02:53 I think it changes translations. I might do it in a separate pull 19:03:04 I'll add that one to "high priority for review" at least 19:03:07 MarcoFalke: ok, thanks! 19:03:45 so please all review that PR ^^ 19:04:25 especially the non-trivial backports 19:04:42 With regard to the other high priority prs in the project: I think we can remove the one from BlueMatt for now 19:04:51 https://github.com/bitcoin/bitcoin/pull/12172 is a small thing, but it is a bugfix, perhaps it makes sense to backport it? 19:04:52 And add next week when the rebase is done 19:05:09 #12172 19:05:13 https://github.com/bitcoin/bitcoin/issues/12172 | Bugfix: RPC: savemempool: Dont save until LoadMempool() is finished by jtimon · Pull Request #12172 · bitcoin/bitcoin · GitHub 19:05:34 I think we should focus on 0.16.1 now, we'll get around to the other high priority stuff again next week 19:05:36 jtimon: that lead to a ton of issues in our tests 19:05:46 I'd prefer we didn't backport that one 19:06:10 I don't think it's terribly urgent to backport, maybe for 0.16.2 19:06:13 is #12431 worth a backport? 19:06:15 https://github.com/bitcoin/bitcoin/issues/12431 | Only call NotifyBlockTip when chainActive changes by jamesob · Pull Request #12431 · bitcoin/bitcoin · GitHub 19:06:26 jamesob: What bug does it fix? 19:07:00 potentially incorrect behavior in waitforblockheight (and anything else relying on rpc/blockchain.cpp:latestblock) 19:07:02 MarcoFalke: ok, no hurry, good to know someone tried it, now I'm curious about the issues in the tests and I'll play with travis and the backport 19:07:20 jamesob: waitforblockheight is a hidden tests-only rpc 19:07:23 potentially how bad? 19:07:25 oh 19:08:22 jtimon: #12863 19:08:23 https://github.com/bitcoin/bitcoin/issues/12863 | mempool_persist.py failing in travis · Issue #12863 · bitcoin/bitcoin · GitHub 19:08:59 jnewbery: thanks 19:09:42 other topics? 19:10:37 i want to bring up #13298 briefly 19:10:39 https://github.com/bitcoin/bitcoin/issues/13298 | Net: Random delays *per network group* to obfuscate transaction time by naumenkogs · Pull Request #13298 · bitcoin/bitcoin · GitHub 19:10:39 anything else important for 0.16.1 that still needs to be done? 19:10:49 (not for 0.16.1, to be clear) 19:11:04 (no problem, that was an orthogonal question) 19:11:08 #topic Random delays *per network group* to obfuscate transaction time 19:11:45 i want to bring it up because it's a possibly significant effect on P2P transaction relay 19:11:59 and it needs review beyond "does the code work" 19:12:02 I haven't had chance to look at it yet 19:12:17 but it's also just local policy and not something that warrants a BIP imho 19:12:37 agree 19:12:55 maybe there's not much more to say about that, just hoping to get people to think about it a bit 19:13:33 #action look at PR 13298 19:13:54 it's three days old, so people are excused not having an opinion on it yet :-) 19:14:09 end topic :) 19:14:15 thanks for bringing it up, I'll have a look as well... 19:14:23 other topics? 19:14:24 it'd be nice to have a tool to model that kind of change, though. 19:14:47 Topic suggestion: GUI prune setting 19:15:23 cfields: makes sense, maybe propose it in the PR 19:15:36 #topic GUI prune setting (provoostenator) 19:15:38 AKA #13043 19:15:41 https://github.com/bitcoin/bitcoin/issues/13043 | [qt] OptionsDialog: add prune setting by Sjors · Pull Request #13043 · bitcoin/bitcoin · GitHub 19:16:23 Looks good,.. maybe orthogonal, but the prune settings should be in the intro... 19:16:26 There's some confusion around whether using QT settings is appropriate for this, and I see three ways out. 19:16:29 That's where it is probably most valuable 19:16:59 1. ignore the problem 19:17:02 I'm ok with most solutions, except writing to bitcoin.conf 19:17:12 2. go the writable config file route 19:17:13 what wumpus sais 19:17:14 hi. 19:17:28 3. interpret a lack of prune= setting differently 19:18:15 Can't the GUI settings not just override what is already set? 19:18:16 (3) is interesting 19:18:33 there currently are a few settings that are saved to qt settings that are shared between qt and bitcoind 19:18:40 but bitcoind can't access 19:18:45 If we go for (2) then I'd like to nominate #11082 for priority review 19:18:46 https://github.com/bitcoin/bitcoin/issues/11082 | Add new bitcoin_rw.conf file that is used for settings modified by this software itself by luke-jr · Pull Request #11082 · bitcoin/bitcoin · GitHub 19:18:56 If prune is set via confi/startip, disallow access in the GUI settings (only display it) 19:18:57 so if we follow what has been done previously, then we ignore it 19:19:01 yes an additional writable config file would be fine 19:19:31 Do we want four(!) levels of configuration? 19:19:35 What about augmenting the GUI to help you generate a default config file when none already exists? 19:19:37 And eventually importing conf-files? 19:19:40 there have also been plans to add RPCs to change configuration settings, that'd require a similar thing, just don't write the -conf file it's just as likely to be in an read-only directory 19:20:23 Would the rw_conf file be replacing the QSettings layer? 19:20:31 jonasschnelli: probably 19:20:31 Right, I'd also like to get rid of QT settings completely and use a read-write (seperate) config file. 19:20:38 jonasschnelli: long term, at least 19:20:39 That would be acceptable 19:20:58 I wrote a migration away from QTSettings here: #12833 19:21:01 https://github.com/bitcoin/bitcoin/issues/12833 | [qt] move QSettings to bitcoin.conf where possible by Sjors · Pull Request #12833 · bitcoin/bitcoin · GitHub 19:21:08 But please not conf<->startup-cli-params<->QTSettings<->level4_rw_conf 19:21:14 nice 19:21:34 Thanks provoostenator for working on that! 19:21:36 since this is a problem that effects multiple options, can we just ignore the problem for now and deal with them all together at the same time with a better solution? 19:21:40 yes storing some of the settings in a different place has been problematic 19:21:54 (at least in the QSettings - because bitcoind can't get there) 19:22:00 users could by and large be migrated over the rw unless they have a need for read-only 19:22:09 for simplicity 19:22:09 the only thing that would idally be stored in the QSettings would be the data directory 19:22:22 well the bitcoin.conf is for human editing 19:22:28 This migration would also work if it's done _after_ we add prune stuff to QTSettings. 19:22:35 the _rw is machine writable, all comments will be discarded etc 19:22:41 ah hm 19:22:45 yes 19:22:48 But if we can get the proper solution over with, that might be better. 19:23:34 For 12833 I'm also unsure about the term "Limit". 19:23:35 on the other hand, having things be dependent on each other is usually a bad idea, just draws out things 19:23:36 Since this is not true 19:24:25 jonasschnelli: what "Limit"? 19:25:09 provoostenator: 12833 currently tells user "Limit block storage to: " which is not true... though the tooptip hints towards the right handling. 19:25:28 how is it not true? 19:25:47 That's #13043 19:25:49 https://github.com/bitcoin/bitcoin/issues/13043 | [qt] OptionsDialog: add prune setting by Sjors · Pull Request #13043 · bitcoin/bitcoin · GitHub 19:26:13 Which I fixed, but screenshot is outdated. 19:26:28 It's now "Prune &block storage to" 19:26:45 wumpus: AFAIK the 550MB assumption (if one sets 550) is still on 1MB blocks 19:26:56 But 288min blocks & undos are enforced 19:27:31 jonasschnelli: right, that's an issue for the command line help too though, I think? 19:27:36 but maybe we should fix that (if it turns out to be a problem) rathern then changing the word "limit" :) 19:27:42 I'm not too worried about details of the text and minimum size. It's what we need to do about saving settings that seems to cause things to get stuck. 19:27:49 Indeed 19:28:35 other topics? 19:28:41 I also hoped we could educate the user withing the GUI a bit more about pruning... but can be done later via extending the intro.cpp 19:29:27 right, let's focus on getting the functionality in first. I think educating the user is a good thing, but having the PR depend on all those things being worked out is going to put it way past 0.17 probably. 19:29:54 I have a short topic: sipa raised concerns about the scantxoutset RPC command 19:30:24 (if that is something we want to discuss here) 19:30:45 so the feature freeze for 0.17 is 2018-07-16, less than two months away 19:31:02 Also note that I don't think Mac shows the intro dialog. 19:31:09 #topic scantxoutset RPC command (jonasschnelli) 19:31:14 provoostenator: it does at least for me 19:31:18 provoostenator: it should! 19:31:24 https://github.com/bitcoin/bitcoin/pull/12196#pullrequestreview-121570579 19:31:40 jonasschnelli: ok, maybe I need to delete more stuff for it to appear. 19:31:56 Before continuing on #12196 we may want to discuss it it makes sense to have a scantxoutset command 19:31:59 https://github.com/bitcoin/bitcoin/issues/12196 | Add scantxoutset RPC method by jonasschnelli · Pull Request #12196 · bitcoin/bitcoin · GitHub 19:32:03 you need to delete -whereever it stores the qsettings on Mac- 19:32:31 on UNIX you can pass the flag -resetguisettings but that's not easy on Mac I think 19:32:42 (works on mac as well) 19:33:00 good :) 19:33:22 Resetting gui settings didn't do it for me, but will debug some other time. 19:33:24 jonasschnelli: what is the command supposed to do? 19:33:26 The scan functionality allows utxo sweeping (rawsweeptransaction) with no block scanning 19:33:49 You can pass in n pubkeys/addresses or even xpubs with a lookup window and it gives you back all unspents 19:33:56 yeah i just mentioned that we preferably don't commit to having functionality that's hard to maintain in the future 19:33:58 And eben a rawsweeptransaction to a single address 19:34:17 fun. 19:34:18 err what 19:34:21 services massacre 19:34:23 irc unicorns... 19:34:55 let's move to slack! 19:34:59 (/s) 19:35:06 :-( 19:35:06 * jonasschnelli stabs cfields 19:36:27 back to topic? 19:36:29 yeah i just mentioned that we preferably don't commit to having functionality that's hard to maintain in the future 19:36:30 Yes. I think sipa's point is a valid point. Do we want to maintain something that may be incompatible with future utxo handling (or new model= 19:36:32 Such functionality seems quite useful for watch-only stuff 19:36:42 Without actually having to import things into a wallet. 19:36:53 which isn't a problem if it were implemented on top of an optional index 19:37:36 sipa: is the optional index a full scriptPubKey index? 19:37:52 But without caching of some sort (or an index?) I'm guessing it'd be very slow. 19:37:57 or something less than that? 19:38:10 sipa: what if we allow it for now an mention in the RN it may later require an optional index? 19:38:41 yes, perhaps 19:38:44 provoostenator: 30seconds for the whole index with an xpub & 1000 keys lookup window on a SSD/fastCPU machine 19:38:51 Or just have an explicit flag enabling the RPC now, even if it requires no additional index at present? 19:38:54 *whole set 19:39:15 yeah, that seems fine 19:39:30 i do see the usefulness of scanning the UTXO set 19:39:38 All the way back to the genesis block? 19:39:48 jimpo: yes. But feels a bit after artificially holding back functions due to possible future work (which may never happen) 19:39:51 provoostenator: it scans the UTXO set, not the blockchain 19:39:53 yes, scanning the utxo set would be incredibly useful 19:40:03 I've wanted this functionality since forever really 19:40:18 Ah OK, it just gets unspends, not transaction history. Well that's still quite useful indeed. 19:40:27 I wanted that in master before the fork-coins happend. :) 19:40:54 even if slow it's so much faster than scanning the entire chain 19:41:01 (without index) 19:41:07 it would also allow importing wallets (no rescan required) if one don't care about the tx history 19:41:39 using importprunedfunds I guess? 19:42:06 Yes.. 19:43:02 conclusion? Hide behind an artificial block-setting or risk it will not maintainable over time? 19:43:48 I think it's probably fine to risk it not being maintainable over time without an explicit index 19:44:19 Yes. I would feel okay with that... 19:44:45 Let me mention that risk in the RN and fix the PR in general /topic 19:44:50 so it will just become slower due to the linear scan? 19:44:53 By "not being maintainable over time" do you mean if the UTXO set gets really large or is it a code maintenance things? 19:45:06 from sipa: 19:45:07 Overall, I'm unsure about this. This is functionality that is more easily provided by software that maintains a UTXO index by script, and is not possible in general if we'd move to a design like UHF (see mailinglist) or other UTXO avoidance techniques. Those are far away of course, and features like this can be made optional (like txindex is) if needed. I'm just generally unconvinced a full node is the best place to put 19:45:07 this. 19:45:10 or is this 'unmaintainable' as in 'will give wumpus more headaches'? 19:45:22 no.. changes of the general model 19:45:39 wumpus: in a UHF model, without indexes, implementing a scan of the UTXO set requires going through the blockchain 19:46:03 (where we store hashes of UTXOs rather than the UTXOs themselves) 19:46:08 sipa, searchable index has been tried a few times, and sadly dropped, something like 3 times 19:46:12 sipa: so that's a far future thing right? 19:46:15 not saying it's not the right way 19:46:28 instagibbs: yes, my preference is that's implemented in other software 19:46:51 i bet there's a dozen private implementations of tx/addr external indexing for xpub related things 19:47:10 I'd really like a way to scan UTXOs, my own appraoch was to stream the UTXO set over HTTP and do it client-side, but that ran into problems with the libevent http server :( 19:47:26 Yes. But there is no fast access to the UTXO set from outside of our code-base IMO 19:47:36 i do it with zmq notifications and the REST interface 19:47:46 * jonasschnelli curses zmq 19:47:56 you're welcome :-) 19:47:57 * wumpus still wants to resurrect #7759 some day 19:48:00 https://github.com/bitcoin/bitcoin/issues/7759 | [WIP] rest: Stream entire utxo set by laanwj · Pull Request #7759 · bitcoin/bitcoin · GitHub 19:48:18 I've taken to modifying gettxoutsetinfo whenever I need to scan the utxo set. takes like 20 minutes though to scan the whole thing 19:48:21 interesting... almost forgotten 19:48:28 In this future where "we store hashes of UTXOs rather than the UTXOs themselves", wouldn't there simply be an optional "index" with the UTXO, which this RPC method could then move to? 19:48:43 achow101: only if you are in debug mode? right... takes 30secs here 19:48:45 provoostenator: yes... exactly... I say it's a problem/option for then 19:49:12 We'd have to make it clear that in the future the method would / might require an index. 19:49:26 jonasschnelli: I think it was the operations I was doing, or my slow hdd 19:49:28 achow101: on ARM it's pretty slow (but still faster than scanning the whole chain!) 19:49:28 it's the same issue as we had with txindex 19:49:41 people build solution that assume txindex is always there... then we moved to a UTXO model 19:50:08 and txindex became an inefficient optional thing 19:50:08 we can even deprecate the RPC then 19:50:14 sipa: then it will be the same situation as getrawtransaction 19:50:49 with #13243, it should become less costly to build future indexes in the background... 19:50:50 I don't think we should reject useful, optional, functionality just because of some future data structure change 19:50:51 https://github.com/bitcoin/bitcoin/issues/13243 | Make reusable base class for auxiliary indices by jimpo · Pull Request #13243 · bitcoin/bitcoin · GitHub 19:50:52 achow101: my concern is not the incompatibility 19:51:07 achow101: my concern is people building an ecosystem that assumes it's always possible and cheap to do 19:51:43 but okay, i agree with the points here 19:52:07 sipa: I agree with that in general, but I'm not sure here 19:52:12 jimpo: great work! 19:52:17 The fact that it takes 30 seconds is helpful in that case. :-) 19:52:17 if we want to encourage people to treat bitcoind as the "ground truth", instead of baking up their own stuff, giving them easier access to the "database" would help 19:52:49 jcorgan: yes... except that the ground truth in the future may not be the UTXO set 19:53:06 jcorgan: that too, would be nice to be able to get easy to export dumps of useful things, though not should what format. 19:53:08 sure, but anything can happen in the future 19:53:17 sure, but anything can happen in the future <- that 19:53:21 jimpo: the question is, if we not want to build a base for an external indexing daemon (outside of the Core project) 19:53:45 in any case this is hard to do out-of-process right now! 19:53:48 even harder than indexing 19:53:52 i'd be happy with that, too, instead of making everyone else recreate it 19:54:05 wumpus: Indeed 19:54:10 it's also less a concern to add optional indexes now with jimpo's background index work 19:54:24 before, new indexes always required ugly hacks all over the validation code 19:54:30 nice! 19:54:32 My guess is there will be ongoing tension between adding RPC functionality and keeping the node requirements small unless there are more options for users 19:54:33 yes 19:54:46 it's a really bad idea to add an address index. 19:54:47 Not too mention that you couldn't turn on/off txindex without reindexing everything. 19:54:52 jimpo, an rpc call in every garage! 19:54:56 i used to maintain the addrindex patch set and it got uglier and uglier over time 19:54:58 it means people will willyfully build insane systems. 19:55:02 haha 19:55:05 echeveria: yes :( 19:55:06 echeveria: agree 19:55:12 but i fear they'll do so anyway 19:55:15 rather than sane, scalable things that don't require an ever growing index. 19:55:41 I tend to agree a better solution is to have a separate indexing service that doesn't do consensus but maintains the full chain state 19:55:42 The question is, is it faster to index everything or to have Core running with 10k wallets 19:55:54 +1 jimpo 19:55:54 and gets blocks via zmq 19:55:59 decent wallet software shouldn't ever need to scan 19:56:04 except for recovery 19:56:09 i want to let bitcoind do the hard stuff (validation) 19:56:27 but then i want to easily get at all the validated data 19:56:38 maybe it never *needs* to, but there are legit situations in which it's useful as a tool 19:56:43 sure! 19:58:10 jimpo: fork Core, ripout the validation stuff and you have an indexing daemon you can connect to your core node over p2p 19:58:31 having a way to disable validation would also help with that :) 19:58:40 anyway, this is turning into a philosophical discussion 19:58:40 jonasschnelli: why not use your indexing daemon? 19:58:57 yes, I think we're through the meeting 19:59:06 wumpus: maybe. Not sure if we want another p2p library introduced 19:59:21 jonasschnelli: not into bitcoin core, I mean as external thing 19:59:27 #endmeeting