19:05:13 #startmeeting 19:05:13 Meeting started Thu Aug 9 19:05:13 2018 UTC. The chair is sipa. Information about MeetBot at http://wiki.debian.org/MeetBot. 19:05:13 Useful Commands: #action #agreed #help #info #idea #link #topic. 19:05:22 topics? 19:06:16 we still have quite a few PRs marked 0.17 19:06:36 should we discuss low-R sigs? 19:07:03 +1 19:07:08 hi 19:07:11 #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:07:17 hi 19:07:20 01:59 < aj> wumpus: in case i'm not awake for the meeting, topic suggestion: lower tx fees, pr #13922 :) 19:07:21 +1 19:07:22 https://github.com/bitcoin/bitcoin/issues/13922 | Lower default relay fees by ajtowns · Pull Request #13922 · bitcoin/bitcoin · GitHub 19:08:17 perhaps first let's ask around if there are things for 0.17 that deserve the milestone 19:09:17 i guess that's a no 19:09:22 #topic low-r signatures 19:09:35 hi 19:09:40 pull request #13666 19:09:43 https://github.com/bitcoin/bitcoin/issues/13666 | Always create signatures with Low R values by achow101 · Pull Request #13666 · bitcoin/bitcoin · GitHubAsset 1Asset 1 19:09:47 ohh sorry! 19:10:06 wumpus: too late, you're fired :p 19:10:17 luke-jr: :p 19:10:38 one issue with the approach is that we need to guess whether signatures created by other software will be assumed to be 71 bytes as well 19:10:49 as brought up by wumpus in the PR 19:11:05 (for size estimation purposes) 19:11:17 yes the size estimation is the only controversial part there imo 19:11:29 this is only a problem when we select watching-only inputs 19:11:29 as we're getting closer to branching off, i wonder if we shouldn't just punt on that 19:11:32 obviously it's better to generate smaller signatures where possible 19:11:52 well we could easily make the size estimate 71 for our keys, and 72 otherwise, and worry about the difference later. 19:11:58 achow101's code right now will assume 71 byte signatures if we have the keys for everything, and 72 in any other case 19:12:12 That seems safe. 19:12:12 that heuristic makes sense I think 19:12:17 that seems reasonable enough. 19:12:34 even if we always estimated 72, I'd rather make the smaller signatures. 19:12:43 exactly, it's kind-of independent 19:12:51 yes, i don't think the discussion is about whether or not to produce 71 byte signatures 19:12:56 we should always do so 19:13:05 imo estimating 72 bytes kind of defeats the purpose of producing 71 byte sigs 19:13:15 it doesn't 19:13:17 it still takes less space in the block chain. 19:13:18 achow101: might defeat _your_ purpose. :P 19:13:22 achow101: nah, you get value in feerate 19:13:28 You're still getting a higher effective fee rate and block space savings 19:13:30 and you get better feerate, yep 19:13:39 what wumpus said. it still economizes use of a public resource, and you still get higher priority. 19:14:06 in any case, 19:14:10 #action review 13666 19:14:22 it adds a bit of complexity by adding a second dummy signer 19:14:27 might save some 3kB per block or so. 19:14:39 If everyone did it 19:15:16 yes 19:15:33 * luke-jr wonders if we should look into getting rid of the Segwit dummy/flags too 19:15:35 You can always add a param to the RPC that says "assume 71 " 19:15:48 ofc that doesn't affect the consensus limits, so not incentivised :/ 19:16:08 well, thinking ahead, we may need that anyway - in case more complicated scripts are supported, the size may depend on what subset of signers is present 19:16:16 but that seems too late for 0.17 19:16:24 provoostenator: I'm... not sure it's good to add such little implementation details to RPC, but maybe a more general fee estimation strategy can be exposed such way 19:16:34 yes, definitely 19:16:43 Luckily the RPC is experimental 19:16:47 rpc would be a bad place for it 19:16:52 or rather, we may need to add a way to pass in information about other signers to transaction creation RPS 19:16:55 RPCs 19:16:59 @provoostenator: I don't think that there is sufficient use of multi party transactions and savings to add a param for that. 19:17:01 the right place would be as metadata on the keys/outputs in the wallet. 19:17:12 gmaxwell: how so? 19:17:22 ah yes, but the 71/72 thing - agree 19:18:23 luke-jr: i don't know what you're referring to? 19:18:24 sipa: just that the size of an scriptpubkey's signature is just a property of the private key(s). 19:18:34 gmaxwell: yes, indeed 19:18:40 just like the pubkey part of the scriptsig being 65 or 33 bytes. 19:19:57 do we have other topics? 19:20:01 in any case, for now its fine to just assume 72 unless we know otherwise. In the future we can be smarter. 19:20:14 the problem will be permanently solved by the new signature encoding that is proposed for Schnorr signatures anyway. 19:20:18 sipa: just that the dummy 2 bytes in every Segwit tx could be eliminated on the network/disk level, if we're trying to focus on micro-optimisations of space 19:20:39 luke-jr: far far better than that can be done. 19:20:51 luke-jr: sure; and much more than that, we should look into compressing all data on the wire 19:20:58 we have someone looking into that 19:21:05 You had a whole write-up on a compressed transaction format earlier didn't you 19:21:23 meshcollider: yes, there's a bunch of improvements and simplifications 19:21:27 which we haven't published 19:21:46 19:07:19 < jnewbery> 01:59 < aj> wumpus: in case i'm not awake for the meeting, topic suggestion: lower tx fees, pr #13922 :) 19:21:48 https://github.com/bitcoin/bitcoin/issues/13922 | Lower default relay fees by ajtowns · Pull Request #13922 · bitcoin/bitcoin · GitHub 19:21:55 #topic lower tx fees, pr 13922 19:22:30 "it changes the min tx fee to 200 s/B, and the incremental relay fee to 100 s/B" doesn't he mean s/kB? 19:22:53 and is that kVB not B? 19:23:07 (I don't have any input on this topic except to concept ACK the PR. Only relaying aj's earlier message) 19:23:07 yeah, kvB 19:23:44 I feel pretty meh about dropping feerates. I guess 200 isn't that much of a change but at some level we get back in spamflood level land. 19:23:57 i have no opinion on this topic 19:24:18 it's low enough I don't care; I'd prefer to see users adopt changes manually rather than top-down default modifications, but meh 19:24:31 gmaxwell: I think that reducing the fee could drive some UTXO consolidation 19:24:52 or cause waiting until it's dropped further. 19:25:04 Murch: if that's the goal, maybe it should explicitly look for that 19:25:43 I've observed that time preference signaling has improved a lot this year. One of our customers explicitly waited for us to allow a fee rate of 2 sats/B before consolidating. 19:26:05 If 0.2 sats/B were possible, I'd not be surprised to see some more of that. 19:27:23 Well lets try it, but if things go wonky it can be set back. 19:27:34 We do have small fee spikes every now and then again. I think that we'd get a backlog of consolidations at least part of the time, hopefully consistently in the future. 19:27:56 The biggest issue is that most miners don't mine anything below 1 sats/B 19:28:14 in terms of the patch, I'm not sure it's doing it correctly as is. Basically we must lower relay and mining behavior before wallet... changing the estimator to allow low estimates before we know they reliably propagate will cause stuck users. 19:28:21 (showing as a solid backlog below 1 sat/B, even when blocks have space left) 19:28:34 Murch: well, if that's the case, it would be bad to drop relay fees lower 19:28:59 I don't follow. 19:29:08 luke-jr: the theory is if the defaults change the behavior will too. 19:29:08 luke-jr: i'm sure miners don't allow below 1 vsat/B _because_ the network doesn't relay them 19:29:36 Ah I see. 19:29:40 Murch: luke's point is that we shouldn't be relaying things that won't get mined. 19:29:51 Yeah, miners tend to lag behind on adoption of new versions 19:30:10 has anyone discussed this with any miners? 19:30:18 It would already help if we found a few percent of the hash rate that tells us they would support it 19:30:34 Murch: this is a matter of policy, not versions. defaults are just defaults. 19:30:41 so 1) reduce the minimum feerate the mining code works at 2) if/when that gets adopted, start relaying below 1 3) if/when that gets adopted, make fee estimation work with it 19:30:59 My suspicion is that most miners don't much fiddle with defaults. 19:31:31 seems like a reasonable order of things 19:32:00 Murch: they should. this is their job, not developers' 19:32:30 can we not have this debate here and now. 19:32:34 My main concern with allowing sub 1 satoshi / vbyte fees is that - when fees are low - there's going to be a good chance the users transaction doesn't propagate. 19:32:37 it's really tedious. 19:32:46 luke-jr: IF they were engaging at that level of the technology, they wouldn't be running mining operations of RaspberryPis, lag behind multiple versions causing orphans, and similar things. 19:33:13 provoostenator: that was my comment above, relay/mining behavior needs to change ahead of wallet behavior, they can't both change at once. 19:34:09 gmaxwell: ah I see, by keeping the wallet minimum at 1 sat / byte, that makes sense. 19:34:11 gmaxwell, mining needs to change, then relay, then wallet 19:34:19 but none of the first two have a reason to change without the later 19:34:20 sooo 19:34:21 gmaxwell: so at best, this would need to be deployed across two versions 19:34:39 achow101: yes. 19:34:41 at least 19:34:47 which means, at this point, it's a year and a half out 19:34:59 and by then, who knows what fees will be like 19:34:59 they can be minor versions 19:35:00 achow101, and realistically miners do change the defaults so... 19:35:01 it depends, we can see the adoption 19:35:30 and decide when (if ever) the wallet part can go in 19:35:32 as luke-jr says. also users can locally override their wallets once they know that lower rates will confirm. 19:35:37 yes 19:35:59 phantomcircuit: we can handle some things getting relayed that don't get mined at least... (now, not so much years ago) 19:36:07 phantomcircuit: It's enough if a portion of the hashrate adopts the change to make it's use a viable strategy for low time-preference txes. 19:37:04 Talking to miners would be a good idea 19:37:39 I'd really like it if there wouldn't need to be these thresholds at all, but unfortunately, solving making it all automatic seems excessively hard. 19:38:14 In any case, I'd review and ack a split up that moved the relay/mining defaults and left the wallet parts up for a later version. 19:40:45 any other topics? 19:40:46 So, pseudowumpus sipa, anything else on your agenda? 19:41:04 gmaxwell: I thought the current PR already left wallet alone 19:41:09 gmaxwell, automating all these levels would be vastly simplified by efficient mempool sync 19:41:13 luke-jr: ah, haven't checked. 19:41:14 which im sure you know :P 19:41:36 phantomcircuit: you can't automate the decision on incremental relay feerate 19:41:45 as it's not mempool dependent but bandwidth cost dependent 19:42:47 wumpus: you have any other topics? 19:43:00 sipa: not your own nodes cost directly, though? since you're not getting paid for it; so measuring bandwidth availability may be sufficient? 19:43:42 nope! 19:43:43 luke-jr: if you'd set it to 0, you can be pushed into arbitrarily high bandwidth usage by an attacker 19:43:50 the 0.17 list basically 19:44:17 luke-jr: for incremental, it's relatively important that the behavior be consistent. Thats largely at odds with automating it, unfortunately. 19:44:36 yeah, let's just take further discussion to the individual PRs 19:44:38 #endmeeting