1 2017-08-07T00:23:22 *** Belxjander has quit IRC
2 2017-08-07T00:28:01 *** Belxjander has joined #bitcoin-dev
3 2017-08-07T00:33:08 *** ptolemaus has quit IRC
4 2017-08-07T00:37:21 *** ogres has joined #bitcoin-dev
5 2017-08-07T00:41:28 *** womantis has joined #bitcoin-dev
6 2017-08-07T00:55:05 *** Belxjander has quit IRC
7 2017-08-07T00:57:18 *** Belxjander has joined #bitcoin-dev
8 2017-08-07T01:06:48 *** redraider has joined #bitcoin-dev
9 2017-08-07T01:13:53 *** satamusic has joined #bitcoin-dev
10 2017-08-07T01:15:03 *** redraider has left #bitcoin-dev
11 2017-08-07T01:28:48 *** contrapumpkin has quit IRC
12 2017-08-07T01:40:08 *** Chris_Stewart_5 has quit IRC
13 2017-08-07T01:43:20 *** ekerstein has joined #bitcoin-dev
14 2017-08-07T02:04:08 *** subo_ has joined #bitcoin-dev
15 2017-08-07T02:07:35 *** subo has quit IRC
16 2017-08-07T02:16:00 *** fatalhalt has quit IRC
17 2017-08-07T02:19:38 *** GypsyScotty has quit IRC
18 2017-08-07T02:20:55 *** fatalhalt has joined #bitcoin-dev
19 2017-08-07T02:39:36 *** shaolinfry has joined #bitcoin-dev
20 2017-08-07T02:40:33 *** Belxjander has quit IRC
21 2017-08-07T02:47:09 *** Belxjander has joined #bitcoin-dev
22 2017-08-07T03:00:53 *** Chris_Stewart_5 has joined #bitcoin-dev
23 2017-08-07T03:09:22 *** ekerstein has quit IRC
24 2017-08-07T03:10:00 *** Belxjander has quit IRC
25 2017-08-07T03:12:00 *** Dizzle has joined #bitcoin-dev
26 2017-08-07T03:13:52 *** ThomasV has joined #bitcoin-dev
27 2017-08-07T03:15:50 *** Belxjander has joined #bitcoin-dev
28 2017-08-07T03:30:57 *** ogres has quit IRC
29 2017-08-07T03:38:27 *** ThomasV has quit IRC
30 2017-08-07T03:41:41 *** janko33 has joined #bitcoin-dev
31 2017-08-07T03:50:09 *** Chris_Stewart_5 has quit IRC
32 2017-08-07T04:05:28 *** segy_ has joined #bitcoin-dev
33 2017-08-07T04:06:12 *** segy has quit IRC
34 2017-08-07T04:06:14 *** segy_ is now known as segy
35 2017-08-07T04:07:45 *** ThomasV has joined #bitcoin-dev
36 2017-08-07T04:12:57 *** Belxjander has quit IRC
37 2017-08-07T04:19:07 *** Belxjander has joined #bitcoin-dev
38 2017-08-07T04:32:38 *** marcoagner has quit IRC
39 2017-08-07T04:40:33 *** iv3c has quit IRC
40 2017-08-07T04:42:30 *** TheSeven has quit IRC
41 2017-08-07T04:43:00 *** TheSeven has joined #bitcoin-dev
42 2017-08-07T04:43:33 *** marcoagner has joined #bitcoin-dev
43 2017-08-07T04:46:00 *** Dizzle has quit IRC
44 2017-08-07T04:54:16 *** Belxjander has quit IRC
45 2017-08-07T04:56:05 *** Belxjander has joined #bitcoin-dev
46 2017-08-07T05:07:28 *** Belxjander has quit IRC
47 2017-08-07T05:08:36 *** Belxjander has joined #bitcoin-dev
48 2017-08-07T05:11:39 *** janko33 has quit IRC
49 2017-08-07T05:12:50 *** dabura667 has joined #bitcoin-dev
50 2017-08-07T05:14:15 *** dabura667 has quit IRC
51 2017-08-07T05:14:28 *** Giszmo has joined #bitcoin-dev
52 2017-08-07T05:23:05 *** Belxjander has quit IRC
53 2017-08-07T05:28:29 *** Belxjander has joined #bitcoin-dev
54 2017-08-07T05:28:38 *** dabura667 has joined #bitcoin-dev
55 2017-08-07T05:29:29 *** dabura667 has quit IRC
56 2017-08-07T05:31:32 *** O01eg has quit IRC
57 2017-08-07T05:34:49 *** veleiro has quit IRC
58 2017-08-07T05:45:21 *** ghost43 has quit IRC
59 2017-08-07T05:46:15 *** ghost43 has joined #bitcoin-dev
60 2017-08-07T05:49:10 *** Belxjander has quit IRC
61 2017-08-07T05:50:56 *** CheckDavid has joined #bitcoin-dev
62 2017-08-07T05:52:55 *** priidu has joined #bitcoin-dev
63 2017-08-07T05:54:19 *** Belxjander has joined #bitcoin-dev
64 2017-08-07T05:56:42 *** priidu has quit IRC
65 2017-08-07T06:03:20 *** ThomasV has quit IRC
66 2017-08-07T06:25:05 *** Belxjander has quit IRC
67 2017-08-07T06:30:09 *** Belxjander has joined #bitcoin-dev
68 2017-08-07T06:39:01 *** Belxjander has quit IRC
69 2017-08-07T06:42:16 *** one_zero has joined #bitcoin-dev
70 2017-08-07T06:42:44 *** notmike has quit IRC
71 2017-08-07T06:42:57 *** one_zero has quit IRC
72 2017-08-07T06:45:12 *** Belxjander has joined #bitcoin-dev
73 2017-08-07T06:50:46 *** jonasschnelli has joined #bitcoin-dev
74 2017-08-07T06:52:17 *** BashCo has quit IRC
75 2017-08-07T06:52:53 *** BashCo has joined #bitcoin-dev
76 2017-08-07T06:57:37 *** BashCo has quit IRC
77 2017-08-07T07:05:20 *** ThomasV has joined #bitcoin-dev
78 2017-08-07T07:13:46 *** BashCo has joined #bitcoin-dev
79 2017-08-07T07:18:38 *** ThomasV has quit IRC
80 2017-08-07T07:24:32 *** one_zero has joined #bitcoin-dev
81 2017-08-07T07:40:29 *** one_zero has quit IRC
82 2017-08-07T07:44:48 *** nazarewk has joined #bitcoin-dev
83 2017-08-07T07:45:00 *** ThomasV has joined #bitcoin-dev
84 2017-08-07T08:05:47 *** epopt has quit IRC
85 2017-08-07T08:05:48 *** cdecker has quit IRC
86 2017-08-07T08:06:12 *** cdecker has joined #bitcoin-dev
87 2017-08-07T08:20:49 *** JackH has joined #bitcoin-dev
88 2017-08-07T08:24:21 *** xenog has quit IRC
89 2017-08-07T08:24:45 *** xenog has joined #bitcoin-dev
90 2017-08-07T08:48:11 *** JackH has quit IRC
91 2017-08-07T08:54:21 *** arthurxie has joined #bitcoin-dev
92 2017-08-07T09:11:44 *** xenog has quit IRC
93 2017-08-07T09:27:47 *** nodweber has joined #bitcoin-dev
94 2017-08-07T09:29:28 *** JZA has quit IRC
95 2017-08-07T09:31:35 *** czaanja_ has joined #bitcoin-dev
96 2017-08-07T09:37:45 *** nodweber has quit IRC
97 2017-08-07T09:49:42 *** JZA has joined #bitcoin-dev
98 2017-08-07T09:57:08 *** xenog has joined #bitcoin-dev
99 2017-08-07T10:02:12 *** arthurxie has quit IRC
100 2017-08-07T10:12:11 *** one_zero has joined #bitcoin-dev
101 2017-08-07T10:12:25 *** xenog has quit IRC
102 2017-08-07T10:26:49 *** xenog has joined #bitcoin-dev
103 2017-08-07T10:29:49 *** CheckDavid has quit IRC
104 2017-08-07T10:32:23 *** fatalhalt has quit IRC
105 2017-08-07T10:49:55 *** xenog has quit IRC
106 2017-08-07T10:50:21 *** xenog has joined #bitcoin-dev
107 2017-08-07T11:15:43 *** ThomasV has quit IRC
108 2017-08-07T11:26:04 *** xenog has quit IRC
109 2017-08-07T11:27:19 *** xenog has joined #bitcoin-dev
110 2017-08-07T11:35:15 *** SopaXorzTaker has joined #bitcoin-dev
111 2017-08-07T11:39:31 *** xenog has quit IRC
112 2017-08-07T11:42:21 *** xenog has joined #bitcoin-dev
113 2017-08-07T11:56:40 *** czaanja_ has quit IRC
114 2017-08-07T12:11:44 *** JackH has joined #bitcoin-dev
115 2017-08-07T12:23:29 *** iv3c has joined #bitcoin-dev
116 2017-08-07T12:31:05 *** omgpanda has joined #bitcoin-dev
117 2017-08-07T12:38:03 *** ThomasV has joined #bitcoin-dev
118 2017-08-07T12:43:12 *** procrash has joined #bitcoin-dev
119 2017-08-07T12:43:16 <procrash> hi
120 2017-08-07T12:43:31 <procrash> is anybody online?
121 2017-08-07T12:50:16 *** ThomasV has quit IRC
122 2017-08-07T13:16:24 *** Chris_Stewart_5 has joined #bitcoin-dev
123 2017-08-07T13:22:52 *** GypsyScotty has joined #bitcoin-dev
124 2017-08-07T13:30:57 *** afk11 has quit IRC
125 2017-08-07T13:36:00 *** afk11 has joined #bitcoin-dev
126 2017-08-07T13:44:24 *** belcher has quit IRC
127 2017-08-07T13:55:45 *** procrash has quit IRC
128 2017-08-07T13:59:31 *** ogres has joined #bitcoin-dev
129 2017-08-07T14:00:09 *** belcher has joined #bitcoin-dev
130 2017-08-07T14:01:54 *** bugs_ has joined #bitcoin-dev
131 2017-08-07T14:05:37 *** Guyver2 has joined #bitcoin-dev
132 2017-08-07T14:08:51 *** damons is now known as damons-away
133 2017-08-07T14:09:17 *** damons-away has quit IRC
134 2017-08-07T14:15:33 *** kristofferR has joined #bitcoin-dev
135 2017-08-07T14:50:25 *** contrapumpkin has joined #bitcoin-dev
136 2017-08-07T15:08:28 *** JackH has quit IRC
137 2017-08-07T15:12:23 *** epopt has joined #bitcoin-dev
138 2017-08-07T15:14:29 *** Dizzle has joined #bitcoin-dev
139 2017-08-07T15:15:07 *** BashCo has quit IRC
140 2017-08-07T15:15:46 *** BashCo has joined #bitcoin-dev
141 2017-08-07T15:15:52 *** Murch has joined #bitcoin-dev
142 2017-08-07T15:16:38 *** damons has joined #bitcoin-dev
143 2017-08-07T15:20:05 *** BashCo has quit IRC
144 2017-08-07T15:23:13 *** nazarewk has quit IRC
145 2017-08-07T15:29:20 *** veleiro has joined #bitcoin-dev
146 2017-08-07T15:38:50 *** veleiro has quit IRC
147 2017-08-07T15:41:55 <dermoth> Hi... In https://github.com/bitcoin/bips/blob/master/bip-0143.mediawiki#Example there are a few tx esamples, however it does not include the txid and wtxid... what's the easiest way to get that
148 2017-08-07T15:42:40 *** Tulsene has quit IRC
149 2017-08-07T15:42:48 <dermoth> I'm using them to validate new segwit code in Bitcoin-abe
150 2017-08-07T15:45:59 *** BashCo has joined #bitcoin-dev
151 2017-08-07T15:53:44 *** janko33 has joined #bitcoin-dev
152 2017-08-07T15:54:43 *** belcher has quit IRC
153 2017-08-07T16:02:31 *** belcher has joined #bitcoin-dev
154 2017-08-07T16:02:34 *** ThomasV has joined #bitcoin-dev
155 2017-08-07T16:05:30 <arubi> dermoth, you can use 'decoderawtransaction' to see those. the hash is just the hash256 of the whole transaction (like txid is today) and the txid is the hash256 of the non witness data
156 2017-08-07T16:06:30 *** veleiro has joined #bitcoin-dev
157 2017-08-07T16:07:25 *** test123456 has joined #bitcoin-dev
158 2017-08-07T16:08:44 *** test123456 has joined #bitcoin-dev
159 2017-08-07T16:08:59 *** test123456 has joined #bitcoin-dev
160 2017-08-07T16:09:17 *** ogres has quit IRC
161 2017-08-07T16:18:58 *** Guyver2 has quit IRC
162 2017-08-07T16:19:48 *** Belxjander has quit IRC
163 2017-08-07T16:20:57 *** Belxjander has joined #bitcoin-dev
164 2017-08-07T16:30:30 *** Chris_Stewart_5 has quit IRC
165 2017-08-07T16:31:08 *** veleiro has quit IRC
166 2017-08-07T16:37:51 *** DTZUZO has quit IRC
167 2017-08-07T16:38:14 *** DTZUZO has joined #bitcoin-dev
168 2017-08-07T16:45:50 <dermoth> Thanks arubi... regarding serialization format are all post-segwit tx'es serialized this way, or will I see a mix? I guess either way they should be treated the same way (compute witness txid and index both), correct?
169 2017-08-07T16:47:53 <arubi> dermoth, only transactions containing at least one segwit input will be serialized using the new format. for non-sw txs, the hash and txid are always the same. in a block, the generation tx might also contain a witness and will have the new format
170 2017-08-07T16:49:03 *** veleiro has joined #bitcoin-dev
171 2017-08-07T16:52:49 *** abpa has joined #bitcoin-dev
172 2017-08-07T16:54:25 *** agricocb has quit IRC
173 2017-08-07T17:09:35 *** Chris_Stewart_5 has joined #bitcoin-dev
174 2017-08-07T17:12:16 *** agricocb has joined #bitcoin-dev
175 2017-08-07T17:16:27 *** agricocb has quit IRC
176 2017-08-07T17:24:29 <dermoth> great, so the input tells me if segwit serialization should be used
177 2017-08-07T17:26:31 <arubi> well, the segwit marker and segwit flags (two bytes) are right after the tx version, so you'll kinda have to know in advance. if transactions are being read from the chain, then it's very easy. a 0x00 after the version means segwit. if the tx is just being independently decoded, then it might also be just a zero input transaction (unfunded)
178 2017-08-07T17:26:31 <dermoth> and actually won't this mean I can just ignore the txhash for segwit tx.... Will there be anyone searching for segwit tx by hash? (IOW WWBD (what would Bitcoin do), eg with -txindex)
179 2017-08-07T17:27:32 <dermoth> actually I look for 0x0001
180 2017-08-07T17:27:32 <dermoth> marker + flag
181 2017-08-07T17:27:32 <arubi> I don't think anybody is going to search for a tx by its hash, that defeats the whole purpose :)
182 2017-08-07T17:28:32 <dermoth> ok, easier for me, do txindex index by txid only (which == to hash on no-segwit)
183 2017-08-07T17:28:32 <dermoth> s/do/so/
184 2017-08-07T17:28:32 <arubi> yea, but for some random transaction you decode (not from the chain or mempool), it might be an unfunded zero in , one out tx
185 2017-08-07T17:29:33 <arubi> right, and a segwit's txid never changes by the witness changing (unlike the hash), so grabbing a segwit tx by its txid is even safer
186 2017-08-07T17:33:39 <dermoth> I parse only mempool and blockin tx... signel and all, so it's safe! (for a moment you got me worried...)
187 2017-08-07T17:33:50 <dermoth> blockchain
188 2017-08-07T17:34:54 <arubi> yep, that should be fine. no 0 input txs :)
189 2017-08-07T17:35:24 *** PaulCapestany has joined #bitcoin-dev
190 2017-08-07T17:35:47 <arubi> dermoth, a good one to try is : 0100000000010200000000000000a9514104aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa0000000023220020aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa0000004104aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa0000000017160014aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaffffffff012102000000000000160014aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa0200000100010253ae00000100
191 2017-08-07T17:36:43 <arubi> if you only expect a mempool\chain tx, you should have a 2 in , one out transaction. if you get an unfunded to one multisig output, you got it wrong :)
192 2017-08-07T17:44:21 *** abpa has quit IRC
193 2017-08-07T17:45:53 *** arubi has quit IRC
194 2017-08-07T17:46:06 *** fatalhalt has joined #bitcoin-dev
195 2017-08-07T17:46:50 *** arubi has joined #bitcoin-dev
196 2017-08-07T17:47:51 <dermoth> thanks... I'll see. I have the bip143 example with everything pre-decoded already... and I was considering parsing https://github.com/bitcoin/bitcoin/blob/master/src/test/data/tx_valid.json too
197 2017-08-07T17:47:51 *** arubi has quit IRC
198 2017-08-07T17:48:53 *** arubi has joined #bitcoin-dev
199 2017-08-07T17:48:55 *** JZA has quit IRC
200 2017-08-07T17:49:48 *** dgenr8 has quit IRC
201 2017-08-07T17:49:53 <arubi> oh for sure, mine is only supplemental to whatever's in the standard
202 2017-08-07T17:50:05 *** Chris_Stewart_5 has quit IRC
203 2017-08-07T17:58:02 <dermoth> thanks... I'll see. I have the bip143 example with everything pre-decoded already... and I was considering parsing https://github.com/bitcoin/bitcoin/blob/master/src/test/data/tx_valid.json too
204 2017-08-07T17:58:12 <dermoth> oh I see you got this :)
205 2017-08-07T17:59:03 <dermoth> I'll probably add it to the list, thanks. so for merkle tree is it the hash or id that is used?
206 2017-08-07T18:00:04 <arubi> well there's both, hash is used for the witness commitment and txid for the block header merkle root
207 2017-08-07T18:04:19 *** Chris_Stewart_5 has joined #bitcoin-dev
208 2017-08-07T18:11:46 *** JZA has joined #bitcoin-dev
209 2017-08-07T18:32:14 *** priidu has joined #bitcoin-dev
210 2017-08-07T18:34:51 *** Chris_St1 has joined #bitcoin-dev
211 2017-08-07T18:35:28 *** Chris_Stewart_5 has quit IRC
212 2017-08-07T18:37:18 *** Chris_St1 has quit IRC
213 2017-08-07T18:37:27 *** Chris_Stewart_5 has joined #bitcoin-dev
214 2017-08-07T18:37:41 *** dermoth has quit IRC
215 2017-08-07T18:38:03 *** dermoth has joined #bitcoin-dev
216 2017-08-07T18:38:50 <arubi> oh no, I don't think that's right at all
217 2017-08-07T18:39:42 <arubi> no that can't be right, dermoth, if you read this on the channel log, that was wrong ^ . the txid is used for both of these.
218 2017-08-07T18:39:55 <arubi> the coinbase txid is just treated as 0x00..00 in the commitment
219 2017-08-07T18:41:02 <arubi> oh you're here, I couldn't autocomplete you for some reason and thought you left. sorry
220 2017-08-07T18:42:32 *** blackwraith has joined #bitcoin-dev
221 2017-08-07T18:42:45 <arubi> got confused even though I just wrote some code to just that a few days ago :)
222 2017-08-07T18:44:12 *** cellvia has left #bitcoin-dev
223 2017-08-07T18:44:16 *** priidu has quit IRC
224 2017-08-07T18:55:48 *** czaanja_ has joined #bitcoin-dev
225 2017-08-07T19:14:01 *** eldee has joined #bitcoin-dev
226 2017-08-07T19:18:08 *** eldee has quit IRC
227 2017-08-07T19:19:16 *** jimpo has joined #bitcoin-dev
228 2017-08-07T19:22:43 *** CheckDavid has joined #bitcoin-dev
229 2017-08-07T19:31:07 *** Chris_Stewart_5 has quit IRC
230 2017-08-07T19:31:08 *** ThomasV has quit IRC
231 2017-08-07T19:37:00 *** cybrNaut has joined #bitcoin-dev
232 2017-08-07T19:41:31 *** abpa has joined #bitcoin-dev
233 2017-08-07T19:45:51 *** chjj has quit IRC
234 2017-08-07T19:52:29 *** Chris_Stewart_5 has joined #bitcoin-dev
235 2017-08-07T19:57:18 *** chjj has joined #bitcoin-dev
236 2017-08-07T20:12:05 *** blackwraith has quit IRC
237 2017-08-07T20:13:30 *** Belxjander has quit IRC
238 2017-08-07T20:14:32 *** jimpo has quit IRC
239 2017-08-07T20:20:56 *** ptolemaus has joined #bitcoin-dev
240 2017-08-07T20:24:17 *** priidu has joined #bitcoin-dev
241 2017-08-07T20:24:22 *** chjj has quit IRC
242 2017-08-07T20:29:54 *** jimpo has joined #bitcoin-dev
243 2017-08-07T20:32:15 *** SopaXorzTaker has quit IRC
244 2017-08-07T20:37:52 *** Dizzle has quit IRC
245 2017-08-07T20:38:40 *** DTZUZU has quit IRC
246 2017-08-07T20:39:02 *** DTZUZO has quit IRC
247 2017-08-07T20:40:25 *** n8wachT has joined #bitcoin-dev
248 2017-08-07T20:47:58 *** damons is now known as damons-away
249 2017-08-07T20:50:17 *** DTZUZO has joined #bitcoin-dev
250 2017-08-07T20:50:53 *** Belxjander has joined #bitcoin-dev
251 2017-08-07T20:54:53 *** blackwraith has joined #bitcoin-dev
252 2017-08-07T20:57:00 *** priidu has quit IRC
253 2017-08-07T20:57:37 *** ogres has joined #bitcoin-dev
254 2017-08-07T21:12:05 *** jimpo has quit IRC
255 2017-08-07T21:16:34 *** abpa has quit IRC
256 2017-08-07T21:17:45 *** chjj has joined #bitcoin-dev
257 2017-08-07T21:19:30 *** abpa has joined #bitcoin-dev
258 2017-08-07T21:22:30 *** janko33 has quit IRC
259 2017-08-07T21:26:40 *** damons-away has quit IRC
260 2017-08-07T21:28:46 *** dgenr8 has joined #bitcoin-dev
261 2017-08-07T21:29:27 *** veleiro has quit IRC
262 2017-08-07T21:33:37 *** test123456 has quit IRC
263 2017-08-07T21:34:31 *** abpa has quit IRC
264 2017-08-07T21:41:00 *** abpa has joined #bitcoin-dev
265 2017-08-07T21:47:08 *** bugs_ has quit IRC
266 2017-08-07T21:53:07 *** czaanja_ has quit IRC
267 2017-08-07T22:20:23 *** veleiro has joined #bitcoin-dev
268 2017-08-07T22:34:22 *** Chris_Stewart_5 has quit IRC
269 2017-08-07T22:54:34 *** ptolemaus has quit IRC
270 2017-08-07T22:59:43 *** n8wachT has quit IRC
271 2017-08-07T23:01:01 *** arubi has quit IRC
272 2017-08-07T23:02:01 *** arubi has joined #bitcoin-dev
273 2017-08-07T23:02:29 *** Giszmo has quit IRC
274 2017-08-07T23:21:02 *** jimpo has joined #bitcoin-dev
275 2017-08-07T23:22:34 *** Soligor has quit IRC
276 2017-08-07T23:22:34 *** Tulsene has joined #bitcoin-dev
277 2017-08-07T23:33:11 *** Soligor has joined #bitcoin-dev
278 2017-08-07T23:35:12 *** DTZUZO has quit IRC
279 2017-08-07T23:36:57 *** POJO has joined #bitcoin-dev
280 2017-08-07T23:40:01 *** DTZUZO has joined #bitcoin-dev
281 2017-08-07T23:46:04 *** POJO has quit IRC
282 2017-08-07T23:47:36 *** blackwraith has quit IRC
283 2017-08-07T23:50:44 *** agricocb has joined #bitcoin-dev