1 2017-07-30 01:39:56 0|gmaxwell|Trolling for ACKs. https://github.com/bitcoin/bitcoin/pull/10945 (people may want to start benchmarking pre-0.15 and this changes performance)
2 2017-07-30 01:40:12 0|gmaxwell|BlueMatt: ^
3 2017-07-30 01:44:37 0|sipa|gmaxwell: extrapolated txcount with the data currently in chainparams is only 0.5% off of the real number
4 2017-07-30 01:44:46 0|sipa|so updating it may be unnecessary
5 2017-07-30 01:46:21 0|gmaxwell|we don't really handle pre vs post assume valid right in terms of estimation though...
6 2017-07-30 03:41:17 0|kanzure|regtest mode sendrawtransaction telling me "insufficient fee". 543 byte transaction is paying 16560 sat fee. 2 inputs, 7 outputs. why is this happening?
7 2017-07-30 03:44:07 0|kanzure|debug=1 is not revealing anything about this.
8 2017-07-30 03:47:04 0|gmaxwell|what are the values of the outputs?
9 2017-07-30 03:47:52 0|kanzure|6 of them are p2pkh 0.08333333 BTC to same address, one is to same address but 0.4998344 BTC.
10 2017-07-30 03:52:20 0|kanzure|also nSequence=0 on all the inputs
11 2017-07-30 03:52:59 0|gmaxwell|the error messages from sendraw are not always accurate because it's actually very complicated to get that right.
12 2017-07-30 03:53:18 0|gmaxwell|is it possible that you're spending an excessively long chain of unconfirmed inputs or something like that?
13 2017-07-30 03:53:34 0|kanzure|quick way to test would be to mine a dozen blocks and try again?
14 2017-07-30 03:53:48 0|gmaxwell|yes.
15 2017-07-30 03:54:20 0|gmaxwell|kanzure: there is a limit on the size of a graph of unconfirmed txn. (it's pretty genrous but in a test it's also not hard to hit)
16 2017-07-30 03:55:12 0|kanzure|whoops shouldn't have generated those blocks. (it's hooked up to an application that decided to spend the inputs aonther way.)
17 2017-07-30 03:56:27 0|kanzure|so.. my setup is not designed to produce chains of unconfirmed transactions. according to getrawtransaction, the inputs had >20 confirmations at the time i was getting "insufficient fee".
18 2017-07-30 03:57:33 0|gmaxwell|are you absolutely sure the fee is what you think it was?
19 2017-07-30 03:57:37 0|kanzure|parent tx was 3558 bytes. ~100 outputs.
20 2017-07-30 03:57:45 0|kanzure|yea i checked with getrawtransaction and checked the 2 inputs.
21 2017-07-30 03:58:15 0|kanzure|and then i summed the output nValues
22 2017-07-30 03:58:53 0|kanzure|oh well, i'll try again and this time turn off the other application.
23 2017-07-30 03:59:19 0|gmaxwell|kanzure: oh if your other output had already spent the coin you might be "insufficient fee for replacement"!
24 2017-07-30 04:01:16 0|kanzure|oh that's clever. yes it could be possible that my system is unintentionally generating a replacement. i could unset nSequence if that would help the error message situation.
25 2017-07-30 04:02:19 0|gmaxwell|I would bet that you're making a replacement unintentionally, setting nseq max on all txn would make that more clear.
26 2017-07-30 04:12:22 0|kanzure|testing. will get back.
27 2017-07-30 04:49:53 0|kanzure|pretty sure that was it, thank you. even worse is that i had a parameter/flag for toggling whether that specific transaction should conflict with previous attempts (as a sort of way of not exhausting my ability to plan, it wasn't intended to be a replacement: but with nSequence=0 that's how it was probably getting interpreted).
28 2017-07-30 04:54:10 0|gmaxwell|there isn't really a 1:1 mapping between "human network rules" and "actual network rules" many rules are implied by others, so it's kind of a crapshoot when something is rejected to map that to the most meaningful reason.
29 2017-07-30 05:06:09 0|kanzure|yes for this to give me the correct error message it would have to know about the previous transaction and be able to report about it or something.. which is different from just attempting a replacement as it does now.
30 2017-07-30 05:06:51 0|gmaxwell|well like it could tell you it was a double spend but that would be super confusing if you were actually attempting a replacement.
31 2017-07-30 05:07:25 0|kanzure|yep, to be fair i'm pretty sure my exact situation is technically a replacement and/or double spend, even though this was a bug on my end.
32 2017-07-30 09:41:13 0|bitcoin-git|[13bitcoin] 15jl2012 opened pull request #10953: [Refactor] Combine scriptPubKey and amount as CTxOut in CScriptCheck (06master...06combine_script_amount) 02https://github.com/bitcoin/bitcoin/pull/10953
33 2017-07-30 13:47:29 0|Yoghurt114|hello, has anything changed in the getrawtransaction result format recently?
34 2017-07-30 13:47:43 0|Yoghurt114|I can't make sense of the following: https://pastebin.com/VjwD8Qhz (random segwit testnet tx)
35 2017-07-30 14:03:50 0|luke-jr|Yoghurt114: Segwit transactions don't use the old tx format..
36 2017-07-30 14:04:09 0|gmaxwell|Yoghurt114: thats segwit.
37 2017-07-30 14:04:21 0|gmaxwell|Yoghurt114: the 0 vin count is the flag that the tx is using segwit.
38 2017-07-30 14:04:35 0|luke-jr|although it's strange that it seems to have a scriptSig for the sole input?
39 2017-07-30 14:04:37 0|gmaxwell|the real vin count follows after it.
40 2017-07-30 14:04:52 0|gmaxwell|luke-jr: p2sh embedded segwit, I'd assume.
41 2017-07-30 14:04:59 0|luke-jr|ah
42 2017-07-30 14:05:35 0|gmaxwell|Yoghurt114: it would be beyond totally awesome if you got your colorcoding tools working with segwit.
43 2017-07-30 14:05:35 0|luke-jr|Yoghurt114: also there's witness data before the lockitme
44 2017-07-30 14:06:19 0|gmaxwell|Yoghurt114: I wasted a couple hours this morning trying to find a reddit post SOMEONE made that colorcoded a hexdump of a block to show the witness data inside it, to disprove some fud that was saying with segwit signatures weren't in blocks.
45 2017-07-30 14:06:46 0|gmaxwell|someone actually suggested it was you and pointed me to your site, which might have resulted in other people nagging you to update your stuff for segwit. :)
46 2017-07-30 14:07:24 0|Yoghurt114|that is indeed what's happened ;)
47 2017-07-30 14:10:35 0|Yoghurt114|so the 00 00 01 01 following the version, what does it mean?
48 2017-07-30 14:11:04 0|Yoghurt114|also I can't explain the last part of the raw tx, what used to be a 4 byte locktime is now 0120000000000000000000000000000000000000000000000000000000000000000000000000
49 2017-07-30 14:14:10 0|Yoghurt114|which I'm guessing is 01 (1 thing) 20 (32 bytes) 0000000000000000000000000000000000000000000000000000000000000000 (hash) and then the locktime 00000000 - but what is the thing, and what does the hash point to?
50 2017-07-30 14:14:59 0|luke-jr|Yoghurt114: before vin count is 00 01
51 2017-07-30 14:15:19 0|luke-jr|before locktime is, for each input, a vector of witness data
52 2017-07-30 14:15:41 0|luke-jr|each of which is number-of-witness-elements, and for each, the size and data itself
53 2017-07-30 14:17:30 0|Yoghurt114|is the 01 following the 00 the segwit program version?
54 2017-07-30 14:23:40 0|intcat|is the new segwit transaction serialization format written up anywhere?
55 2017-07-30 14:26:34 0|gmaxwell|intcat: sure, in the specs, that one is in BIP 144 https://github.com/bitcoin/bips/blob/master/bip-0144.mediawiki
56 2017-07-30 14:27:04 0|gmaxwell|intcat: come on, you think we'd really change the consensus protocol in any way without writing an extensive specification?
57 2017-07-30 14:28:39 0|luke-jr|Yoghurt114: no, the sequence at the start merely serves to distinguish segwit from non-segwit
58 2017-07-30 14:28:40 0|intcat|course not, just had some trouble finding it - didnt expect it under "peer services" ;)
59 2017-07-30 14:30:56 0|Yoghurt114|"The marker byte is set to zero so that this structure will never parse as a valid transaction in a parser that does not support this BIP." well - the thing crashed, so I guess the spec is well-defined ;)
60 2017-07-30 14:32:27 0|gmaxwell|intcat: serialization itself is a property of the p2p protocol, in theory at least you could have a mix of peers using something entirely different between each other, all in consensus with the network. What matters for consensus is the hashing.
61 2017-07-30 14:46:15 0|intcat|is the txin[] the same format as before?
62 2017-07-30 14:49:39 0|gmaxwell|intcat: yes.
63 2017-07-30 15:07:26 0|jl2012|intcat, gmaxwell: the serialization is indeed consensus because of hashing and weight counting
64 2017-07-30 19:27:51 0|bitcoin-git|[13bitcoin] 15practicalswift opened pull request #10956: Fix typos (06master...06typos-201708) 02https://github.com/bitcoin/bitcoin/pull/10956
65 2017-07-30 19:45:21 0|Yoghurt114|gmaxwell: https://i.imgur.com/8hO4yoH.png it'll look something like this
66 2017-07-30 19:52:21 0|Emcy|has there ever been a known example of an SPV client being scammed/partitioned off deliberately
67 2017-07-30 19:52:48 0|Emcy|or otherwise attacked using the trust concessions that SPV clients have to mkae
68 2017-07-30 19:53:05 0|Emcy|shit wrong place ignore
69 2017-07-30 21:41:45 0|bitcoin-git|[13bitcoin] 15practicalswift opened pull request #10957: Do not return a BIP9Stats object with uninitialized values (06master...06bip9status) 02https://github.com/bitcoin/bitcoin/pull/10957