1 2016-10-26T00:05:01  *** priidu has quit IRC
  2 2016-10-26T00:22:59  *** oleganza has quit IRC
  3 2016-10-26T00:31:11  *** weedcoder has joined #bitcoin-dev
  4 2016-10-26T00:37:11  *** copumpkin has joined #bitcoin-dev
  5 2016-10-26T00:38:45  *** oleganza has joined #bitcoin-dev
  6 2016-10-26T00:39:00  *** realz has joined #bitcoin-dev
  7 2016-10-26T00:47:32  *** herzmeister has quit IRC
  8 2016-10-26T00:47:47  *** Giszmo has quit IRC
  9 2016-10-26T00:47:54  *** herzmeister has joined #bitcoin-dev
 10 2016-10-26T00:53:32  *** robink_ has quit IRC
 11 2016-10-26T00:58:30  *** gmaxwell has joined #bitcoin-dev
 12 2016-10-26T00:58:34  *** gmaxwell has left #bitcoin-dev
 13 2016-10-26T01:16:37  *** Ylbam has quit IRC
 14 2016-10-26T01:16:44  *** Ylbam_ has joined #bitcoin-dev
 15 2016-10-26T01:17:03  *** thurmyt3 has quit IRC
 16 2016-10-26T01:17:06  *** Ylbam_ has quit IRC
 17 2016-10-26T01:18:21  *** realz has quit IRC
 18 2016-10-26T01:20:40  *** denisx has joined #bitcoin-dev
 19 2016-10-26T01:21:00  <denisx> hi, I see very strange things with 0.13.1 regarding ipv6
 20 2016-10-26T01:21:09  <denisx> connect() to [b197:c656:100::]:0 failed
 21 2016-10-26T01:21:27  <denisx> alot of strange addresses, always with 100 in the end
 22 2016-10-26T01:21:49  <denisx> sometimes I see: connect() to [100::2001:610:600:a41]:0 failed: Can't assign requested address
 23 2016-10-26T01:21:56  <denisx> with the 100 in the beginning
 24 2016-10-26T01:22:09  <denisx> also connect() to [ffa5:2957:100::]:0 failed: Address family not supported by protocol family
 25 2016-10-26T01:22:30  *** robink_ has joined #bitcoin-dev
 26 2016-10-26T01:23:50  *** thurmyt3 has joined #bitcoin-dev
 27 2016-10-26T01:28:18  *** weedcoder has quit IRC
 28 2016-10-26T01:28:45  *** nsh has quit IRC
 29 2016-10-26T01:29:54  *** CheckDavid has joined #bitcoin-dev
 30 2016-10-26T01:30:25  *** realz has joined #bitcoin-dev
 31 2016-10-26T01:32:00  *** deadalnix has joined #bitcoin-dev
 32 2016-10-26T01:42:07  *** nsh has joined #bitcoin-dev
 33 2016-10-26T01:42:12  *** moli has quit IRC
 34 2016-10-26T01:52:12  *** oleganza has quit IRC
 35 2016-10-26T01:52:13  *** deadalnix has quit IRC
 36 2016-10-26T02:15:00  *** Subo1977 has joined #bitcoin-dev
 37 2016-10-26T02:15:14  *** qu9 has quit IRC
 38 2016-10-26T02:18:04  *** Delta_ has quit IRC
 39 2016-10-26T02:23:11  *** moli has joined #bitcoin-dev
 40 2016-10-26T02:23:22  *** DigiByteDev has joined #bitcoin-dev
 41 2016-10-26T02:38:59  *** weedcoder has joined #bitcoin-dev
 42 2016-10-26T02:44:01  *** weedcoder has quit IRC
 43 2016-10-26T02:50:05  *** jtimon has quit IRC
 44 2016-10-26T02:51:08  *** Chris_Stewart_5 has quit IRC
 45 2016-10-26T03:13:26  *** frankenmint has joined #bitcoin-dev
 46 2016-10-26T03:13:40  <frankenmint> maybe this is for naught but, i really need some help right now
 47 2016-10-26T03:14:27  <frankenmint> how do I rebroadcast a transaction with a higher fee in bitcoin core-  I need to delete the unconfirmed first transaction as well
 48 2016-10-26T03:27:20  *** Dizzle has joined #bitcoin-dev
 49 2016-10-26T03:37:20  *** DigiByteDev has quit IRC
 50 2016-10-26T03:45:31  *** DigiByteDev has joined #bitcoin-dev
 51 2016-10-26T04:04:28  *** cyphase has quit IRC
 52 2016-10-26T04:08:34  *** justan0theruser has joined #bitcoin-dev
 53 2016-10-26T04:09:16  *** cyphase has joined #bitcoin-dev
 54 2016-10-26T04:10:58  *** justanotheruser has quit IRC
 55 2016-10-26T04:12:09  *** ThomasV has joined #bitcoin-dev
 56 2016-10-26T04:17:28  *** DigiByteDev has quit IRC
 57 2016-10-26T04:20:04  *** denisx has quit IRC
 58 2016-10-26T04:24:14  *** altgribble` is now known as altgribble
 59 2016-10-26T04:37:09  <achow101> frankenmint: abandontransaction rpc or right click the transaction and select "abandon transaction" (only for 0.13.0+). Then send another transaction
 60 2016-10-26T04:37:46  <frankenmint> alright, thanks!, I figured out that this transaction from bitcoin core did go through so Im sorta sol
 61 2016-10-26T04:49:39  *** TheSeven has quit IRC
 62 2016-10-26T04:49:59  *** TheSeven has joined #bitcoin-dev
 63 2016-10-26T04:54:48  *** ThomasV has quit IRC
 64 2016-10-26T05:09:30  *** janko33 has joined #bitcoin-dev
 65 2016-10-26T05:23:58  *** realz has quit IRC
 66 2016-10-26T05:24:17  *** matrix1233 has joined #bitcoin-dev
 67 2016-10-26T05:24:40  *** realz has joined #bitcoin-dev
 68 2016-10-26T05:26:46  *** justanotheruser has joined #bitcoin-dev
 69 2016-10-26T05:29:02  *** matrix1233 has quit IRC
 70 2016-10-26T05:29:09  *** justan0theruser has quit IRC
 71 2016-10-26T05:33:15  *** paveljanik has quit IRC
 72 2016-10-26T05:46:00  *** chjj has joined #bitcoin-dev
 73 2016-10-26T05:59:08  *** chjj has quit IRC
 74 2016-10-26T06:02:49  *** chjj has joined #bitcoin-dev
 75 2016-10-26T06:11:14  *** one_zero has quit IRC
 76 2016-10-26T06:12:59  *** ongolaBoy has joined #bitcoin-dev
 77 2016-10-26T06:15:06  *** chjj has quit IRC
 78 2016-10-26T06:18:29  *** matrix1233 has joined #bitcoin-dev
 79 2016-10-26T06:21:20  *** baldur has quit IRC
 80 2016-10-26T06:23:28  *** matrix1233 has quit IRC
 81 2016-10-26T06:32:02  *** chjj has joined #bitcoin-dev
 82 2016-10-26T06:43:06  *** CheckDavid has quit IRC
 83 2016-10-26T06:55:08  *** BashCo has quit IRC
 84 2016-10-26T07:00:34  *** realz has quit IRC
 85 2016-10-26T07:03:34  *** realz has joined #bitcoin-dev
 86 2016-10-26T07:05:54  *** jcarter9753 has quit IRC
 87 2016-10-26T07:19:59  *** BashCo has joined #bitcoin-dev
 88 2016-10-26T07:32:18  *** nazarewk has joined #bitcoin-dev
 89 2016-10-26T07:47:11  *** Dizzle has quit IRC
 90 2016-10-26T07:47:47  *** baldur has joined #bitcoin-dev
 91 2016-10-26T07:57:19  *** qu9 has joined #bitcoin-dev
 92 2016-10-26T07:59:19  *** ThomasV has joined #bitcoin-dev
 93 2016-10-26T08:00:17  *** weedcoder has joined #bitcoin-dev
 94 2016-10-26T08:04:59  *** ThomasV has quit IRC
 95 2016-10-26T08:05:03  *** nazarewk has quit IRC
 96 2016-10-26T08:06:40  *** matrix1233 has joined #bitcoin-dev
 97 2016-10-26T08:07:01  *** nazarewk has joined #bitcoin-dev
 98 2016-10-26T08:10:48  *** blur3d has joined #bitcoin-dev
 99 2016-10-26T08:10:58  *** matrix1233 has quit IRC
100 2016-10-26T08:36:21  *** koad has quit IRC
101 2016-10-26T08:47:19  *** DigiByteDev has joined #bitcoin-dev
102 2016-10-26T08:50:53  *** ThomasV has joined #bitcoin-dev
103 2016-10-26T09:00:57  *** matrix1233 has joined #bitcoin-dev
104 2016-10-26T09:05:29  *** matrix1233 has quit IRC
105 2016-10-26T09:31:04  *** matrix1233 has joined #bitcoin-dev
106 2016-10-26T09:32:43  *** Peak has joined #bitcoin-dev
107 2016-10-26T09:35:30  *** Peak has left #bitcoin-dev
108 2016-10-26T09:42:18  *** murch has joined #bitcoin-dev
109 2016-10-26T10:03:51  *** weedcoder has quit IRC
110 2016-10-26T10:09:11  *** weedcoder has joined #bitcoin-dev
111 2016-10-26T10:12:42  *** deadalnix has joined #bitcoin-dev
112 2016-10-26T10:13:31  *** weedcoder has quit IRC
113 2016-10-26T10:14:32  *** qu9 has quit IRC
114 2016-10-26T10:17:35  *** deadalnix has quit IRC
115 2016-10-26T10:43:39  *** ThomasV has quit IRC
116 2016-10-26T10:52:17  *** DigiByteDev has quit IRC
117 2016-10-26T11:28:05  *** sturles has quit IRC
118 2016-10-26T11:28:45  *** wallet42 has joined #bitcoin-dev
119 2016-10-26T11:29:41  *** blur3d has left #bitcoin-dev
120 2016-10-26T11:51:06  *** jtimon has joined #bitcoin-dev
121 2016-10-26T11:52:02  *** d9b4bef9 has quit IRC
122 2016-10-26T11:52:37  *** DigiByteDev has joined #bitcoin-dev
123 2016-10-26T11:55:07  *** d9b4bef9 has joined #bitcoin-dev
124 2016-10-26T12:01:18  *** harai has quit IRC
125 2016-10-26T12:14:49  *** DigiByteDev has quit IRC
126 2016-10-26T12:28:04  *** r0kc4t has joined #bitcoin-dev
127 2016-10-26T12:32:46  *** sturles has joined #bitcoin-dev
128 2016-10-26T12:42:17  *** agricocb has quit IRC
129 2016-10-26T12:59:51  *** agricocb has joined #bitcoin-dev
130 2016-10-26T13:08:08  *** herzmeister has quit IRC
131 2016-10-26T13:08:47  *** herzmeister has joined #bitcoin-dev
132 2016-10-26T13:10:03  *** DigiByteDev has joined #bitcoin-dev
133 2016-10-26T13:19:57  *** weedcoder has joined #bitcoin-dev
134 2016-10-26T13:33:44  *** cdecker has joined #bitcoin-dev
135 2016-10-26T13:36:11  *** DigiByteDev has quit IRC
136 2016-10-26T13:44:32  *** herzmeister has quit IRC
137 2016-10-26T13:44:51  *** herzmeister has joined #bitcoin-dev
138 2016-10-26T13:48:15  *** bugs_ has joined #bitcoin-dev
139 2016-10-26T13:56:20  *** darvon has quit IRC
140 2016-10-26T13:57:58  *** darvon has joined #bitcoin-dev
141 2016-10-26T14:06:15  *** Giszmo has joined #bitcoin-dev
142 2016-10-26T14:06:38  *** Chris_Stewart_5 has joined #bitcoin-dev
143 2016-10-26T14:08:50  *** Bitcoin-24 has joined #bitcoin-dev
144 2016-10-26T14:13:58  *** da2ce7 has quit IRC
145 2016-10-26T14:16:43  *** Chris_Stewart_5 has quit IRC
146 2016-10-26T14:20:17  *** Bitcoin-24 has quit IRC
147 2016-10-26T14:20:28  *** cyphase has quit IRC
148 2016-10-26T14:20:37  *** Bitcoin-24 has joined #bitcoin-dev
149 2016-10-26T14:21:12  *** CheckDavid has joined #bitcoin-dev
150 2016-10-26T14:22:18  *** Bitcoin-24 has joined #bitcoin-dev
151 2016-10-26T14:25:21  *** cyphase has joined #bitcoin-dev
152 2016-10-26T14:25:46  *** da2ce7 has joined #bitcoin-dev
153 2016-10-26T14:30:52  <Bitcoin-24> will 13.1 fix the transaction queue problem?
154 2016-10-26T14:36:34  <jonasschnelli> Bitcoin-24: transaction queue problem? Can you be more specific?
155 2016-10-26T14:37:08  <Bitcoin-24> maybe it's better to ask if the blocksize will increase
156 2016-10-26T14:38:17  *** sh_smith has quit IRC
157 2016-10-26T14:40:49  <jonasschnelli> Bitcoin-24: 0.13.1 includes the segwith softfork which solves different issues and increases indirectly the capacity (blocksize): https://bitcoincore.org/en/2016/01/26/segwit-benefits/#block-capacitysize-increase
158 2016-10-26T14:41:03  <jonasschnelli> s/segwith/segwit/
159 2016-10-26T14:41:48  <Bitcoin-24> thanks, thats what I asked for ;)
160 2016-10-26T14:43:19  *** sh_smith has joined #bitcoin-dev
161 2016-10-26T14:43:27  *** ThomasV has joined #bitcoin-dev
162 2016-10-26T14:44:46  *** chjj has quit IRC
163 2016-10-26T14:48:58  *** Bitcoin-24 is now known as Hausdorf
164 2016-10-26T14:51:49  *** Hausdorf has quit IRC
165 2016-10-26T14:52:06  *** Bitcoin-24 has joined #bitcoin-dev
166 2016-10-26T14:52:16  *** Bitcoin-24 is now known as Hausdorf
167 2016-10-26T14:54:02  *** cdecker has quit IRC
168 2016-10-26T14:54:32  *** cdecker has joined #bitcoin-dev
169 2016-10-26T14:54:43  *** BashCo has quit IRC
170 2016-10-26T14:55:21  *** BashCo has joined #bitcoin-dev
171 2016-10-26T15:00:08  *** BashCo has quit IRC
172 2016-10-26T15:01:45  *** chjj has joined #bitcoin-dev
173 2016-10-26T15:02:14  *** chjj has joined #bitcoin-dev
174 2016-10-26T15:11:40  *** ThomasV has quit IRC
175 2016-10-26T15:12:22  *** harai has joined #bitcoin-dev
176 2016-10-26T15:16:43  *** harai has quit IRC
177 2016-10-26T15:17:54  *** one_zero has joined #bitcoin-dev
178 2016-10-26T15:29:19  *** weedcoder has quit IRC
179 2016-10-26T15:36:10  *** ongolaBoy has quit IRC
180 2016-10-26T15:38:24  *** da2ce7 has quit IRC
181 2016-10-26T15:38:35  *** BashCo has joined #bitcoin-dev
182 2016-10-26T15:40:04  *** weedcoder has joined #bitcoin-dev
183 2016-10-26T15:45:03  *** Hausdorf has left #bitcoin-dev
184 2016-10-26T15:47:28  *** Hausdorf has joined #bitcoin-dev
185 2016-10-26T15:54:08  *** Hausdorf is now known as Hausdorf-
186 2016-10-26T15:54:19  *** Hausdorf- is now known as Hausdorf
187 2016-10-26T15:59:28  *** chjj has quit IRC
188 2016-10-26T16:03:13  *** da2ce7 has joined #bitcoin-dev
189 2016-10-26T16:04:53  *** Hausdorf is now known as Hausdorf-
190 2016-10-26T16:10:25  *** nazarewk has quit IRC
191 2016-10-26T16:15:17  *** koad has joined #bitcoin-dev
192 2016-10-26T16:17:22  *** Chris_Stewart_5 has joined #bitcoin-dev
193 2016-10-26T16:26:45  *** agricocb has quit IRC
194 2016-10-26T16:26:47  *** weedcoder has quit IRC
195 2016-10-26T16:44:59  *** chjj has joined #bitcoin-dev
196 2016-10-26T16:46:02  *** killerstorm has joined #bitcoin-dev
197 2016-10-26T16:51:44  *** treehug88 has joined #bitcoin-dev
198 2016-10-26T16:59:02  <killerstorm> hi. bitcoind returns bad block data, have anyone seen something like that?
199 2016-10-26T17:00:36  <killerstorm> it looks like some extra bytes were prepended to transactions
200 2016-10-26T17:04:05  <killerstorm> and it's not some random glitch, I got exactly the same data after erasing data and syncing again
201 2016-10-26T17:09:12  <arubi> killerstorm, example..?
202 2016-10-26T17:09:43  <arubi> I mean..  I'm sure you realize what would happen if bitcoind suddenly started returning bad block data..
203 2016-10-26T17:10:39  *** qu9 has joined #bitcoin-dev
204 2016-10-26T17:12:34  <killerstorm> I got this for block 00000000000b5fd5fcada419cfa41f2d2dbbd0b74ba594edb2877f693bd328db  on the testnet. first line is correct block, third is incorrect. http://pastebin.com/Nv863Fx4
205 2016-10-26T17:14:09  <killerstorm> I suspect it might be a problem with my system, but it's weird that no problems are reported and it just keeps going forward.
206 2016-10-26T17:15:56  <arubi> ah I forgot my testnet node was down, which version are you running?  where is the "correct" data from?
207 2016-10-26T17:16:22  <arubi> it's starting, but will take a couple minutes or so
208 2016-10-26T17:18:51  <killerstorm> 0.13.0 Linux 64 bit. correct data is from another node run by another person.
209 2016-10-26T17:18:53  <arubi> looks like line 3 has segwit data and line 1 doesn't, at least from eyeballing it
210 2016-10-26T17:19:23  <arubi> pretty sure you'll need 0.13.1* for segwit data
211 2016-10-26T17:21:20  <arubi> well now I remember, I need to reindex testnet :\ , can't run my own node, but I'm almost positive that that's what's happening here
212 2016-10-26T17:21:35  *** robink_ is now known as robink
213 2016-10-26T17:22:02  *** weedcoder has joined #bitcoin-dev
214 2016-10-26T17:22:16  <arubi> so killerstorm, all seems to be fine.  upgrade your node and you'll get segwit data in blocks
215 2016-10-26T17:23:18  <killerstorm> hmm, so the format of data returned by getblock is changed?
216 2016-10-26T17:23:37  <killerstorm> the particular problem I'm having is that bitcore-lib cannot parse that block
217 2016-10-26T17:23:43  <arubi> line 3?
218 2016-10-26T17:23:53  <killerstorm> yes
219 2016-10-26T17:24:24  <arubi> I don't know if bitcore supports segwit or not
220 2016-10-26T17:24:25  *** blueness has joined #bitcoin-dev
221 2016-10-26T17:24:45  <arubi> https://github.com/bitpay/bitcore-lib/issues/49  I guess it's here
222 2016-10-26T17:24:49  <killerstorm> well it doesn't, but I thought segwit is backwards-compatible to some extent
223 2016-10-26T17:25:43  <arubi> you can't expect old software to parse new data
224 2016-10-26T17:25:56  <arubi> give it the block from your node, it'll be the same transactions and everything
225 2016-10-26T17:26:02  *** koad has quit IRC
226 2016-10-26T17:26:05  <arubi> just without the witness data like scripts, signatures
227 2016-10-26T17:26:10  *** atroxes has joined #bitcoin-dev
228 2016-10-26T17:26:21  <killerstorm> I thought getblock will return block data without witness data
229 2016-10-26T17:26:25  *** weedcoder has quit IRC
230 2016-10-26T17:26:39  <arubi> that would be quite annoying for all who do support segwit though :)
231 2016-10-26T17:28:02  <arubi> also seems like they have a segwit branch in their repo, might wanna give that a try.  I gotta go afk for a bit
232 2016-10-26T17:40:11  *** MoALTz has joined #bitcoin-dev
233 2016-10-26T17:41:27  <killerstorm> I don't see how it would be annoying to use another RPC call, say getblocksegwit, in new software
234 2016-10-26T17:41:44  <killerstorm> if getblock returns data in new format, existing software will just halt
235 2016-10-26T17:41:51  <killerstorm> after bitcoind update
236 2016-10-26T17:43:23  *** NewLiberty has quit IRC
237 2016-10-26T17:52:28  <arubi> having a new rpc call for the same functionality /would/ be non backwards compatible.  you can continue using 0.13.0 for how long you want to using current non segwit bitcore-lib
238 2016-10-26T17:52:36  <arubi> you're not losing any security
239 2016-10-26T17:55:52  <killerstorm> I'm using 0.13.0 and the problem already exists with testnet
240 2016-10-26T17:56:21  <killerstorm> it silently returns data in different format and library just barfs during parsing. worst way to handle this, IMHO. but whatever. I'll downgrade to 0.12.1
241 2016-10-26T17:57:11  <arubi> I don't understand what's failing for you.  if you use your 0.13.0 node, why does it return data in different formats?
242 2016-10-26T17:58:09  <arubi> or are both you and your friend querying the same bitcore-lib?
243 2016-10-26T17:59:25  <arubi> I mean, bitcore-lib already has an active branch, you're going to need to update it eventually
244 2016-10-26T18:00:47  *** ThomasV has joined #bitcoin-dev
245 2016-10-26T18:03:26  <killerstorm> 0.13.0 already returns this new format on testnet.
246 2016-10-26T18:04:34  <arubi> ah, why not pull bitcore-lib segwit branch then?
247 2016-10-26T18:04:51  <arubi> it's going to end up in a release anyway
248 2016-10-26T18:05:52  *** ThomasV has quit IRC
249 2016-10-26T18:10:45  <killerstorm> I'd rather wait for it to get stable, I have no immediate need for segwit stuff.
250 2016-10-26T18:11:21  <arubi> ah I see, well that's also an option
251 2016-10-26T18:11:34  *** agricocb has joined #bitcoin-dev
252 2016-10-26T18:12:04  *** qu9 has quit IRC
253 2016-10-26T18:15:21  *** gnubeard has joined #bitcoin-dev
254 2016-10-26T18:19:09  *** blueness has quit IRC
255 2016-10-26T18:19:46  *** blueness has joined #bitcoin-dev
256 2016-10-26T18:21:30  *** atroxes has quit IRC
257 2016-10-26T18:25:56  *** agricocb has quit IRC
258 2016-10-26T18:29:16  *** killerstorm has quit IRC
259 2016-10-26T18:30:32  *** murch has quit IRC
260 2016-10-26T18:30:37  *** atroxes has joined #bitcoin-dev
261 2016-10-26T18:42:08  *** qu9 has joined #bitcoin-dev
262 2016-10-26T18:42:32  *** priidu has joined #bitcoin-dev
263 2016-10-26T18:47:13  *** Chris_Stewart_5 has quit IRC
264 2016-10-26T18:49:57  *** Chris_Stewart_5 has joined #bitcoin-dev
265 2016-10-26T18:58:48  *** Delerium has joined #bitcoin-dev
266 2016-10-26T19:00:37  *** gnubeard has quit IRC
267 2016-10-26T19:01:38  *** paveljanik has joined #bitcoin-dev
268 2016-10-26T19:02:57  *** gnubeard has joined #bitcoin-dev
269 2016-10-26T19:14:13  *** chjj has quit IRC
270 2016-10-26T19:14:25  *** murch has joined #bitcoin-dev
271 2016-10-26T19:20:06  *** jl2012 has quit IRC
272 2016-10-26T19:20:54  *** jl2012 has joined #bitcoin-dev
273 2016-10-26T19:24:14  *** gnubeard has quit IRC
274 2016-10-26T19:28:09  *** chjj has joined #bitcoin-dev
275 2016-10-26T19:34:48  *** harai has joined #bitcoin-dev
276 2016-10-26T19:46:56  *** MoALTz has quit IRC
277 2016-10-26T19:47:56  *** agricocb has joined #bitcoin-dev
278 2016-10-26T20:04:02  *** d9b4bef9 has quit IRC
279 2016-10-26T20:05:08  *** d9b4bef9 has joined #bitcoin-dev
280 2016-10-26T20:12:36  *** gnubeard has joined #bitcoin-dev
281 2016-10-26T20:17:52  *** Hausdorf- is now known as Hausdorf
282 2016-10-26T20:20:17  *** gnubeard has quit IRC
283 2016-10-26T20:29:17  *** Chris_Stewart_5 has quit IRC
284 2016-10-26T20:29:48  *** agricocb has quit IRC
285 2016-10-26T20:35:20  *** jcarter9753 has joined #bitcoin-dev
286 2016-10-26T20:35:45  <jcarter9753> Hi, would anyone mind helping me clarify BIP 0141, protocol definition of Witness TX?
287 2016-10-26T20:36:10  <jcarter9753> Sorry - BIP 0144 https://github.com/bitcoin/bips/blob/master/bip-0144.mediawiki
288 2016-10-26T20:36:35  <jcarter9753> It says "The number of script witnesses is not explicitly encoded as it is implied by txin_count."
289 2016-10-26T20:36:40  <jcarter9753> Is this incorrect or am I missing something?
290 2016-10-26T20:38:32  <jcarter9753> My script processor fails if the Script is OP_FALSE <20 bytes> and no PubKey and Signature are provided in the Witness as expected, but it takes a VarInt at the start of the Script_Witness block after the Outputs, which the docs say should not be there?
291 2016-10-26T20:39:17  <jcarter9753>             if (asWitness)             {                 var witnessCount = stream.ReadVarInt();                 for (int i = 0; i < witnessCount; i++)                 {                     var witnessLength = (int)stream.ReadVarInt();                     tx.Inputs[i].WitnessScript = new byte[witnessLength];                     stream.Read(tx.Inputs[i].WitnessScript, 0, witnessLength);                 }             }
292 2016-10-26T20:39:21  <jcarter9753> oops, formatting
293 2016-10-26T20:40:40  <jcarter9753> Is there anyone in the channel that has implemented segwit in their clients?
294 2016-10-26T20:43:28  *** To7 has quit IRC
295 2016-10-26T20:45:07  *** Chris_Stewart_5 has joined #bitcoin-dev
296 2016-10-26T20:46:30  <jcarter9753> Is there anyone in the channel that has implemented segwit in their clients?
297 2016-10-26T20:48:19  <jcarter9753> Is there anyone who is thinking about implementing segwit, considering it will soon be live?
298 2016-10-26T20:51:18  <murch> You could try talking to jl2012
299 2016-10-26T20:51:21  <murch> or sipa
300 2016-10-26T20:51:41  <jcarter9753> Thanks, do they visit here frequently?
301 2016-10-26T20:51:50  <murch> no clue
302 2016-10-26T20:52:03  <murch> sorry
303 2016-10-26T20:52:18  <jcarter9753> Ok thanks for your response
304 2016-10-26T20:52:20  <murch> jl2012 appears to be in the channel, but I don't know whether he is afk
305 2016-10-26T20:52:45  <jcarter9753> I will wait and see if he pops up at some point.
306 2016-10-26T20:52:57  <murch> I'm sure you've already seen https://bitcoincore.org/en/segwit_wallet_dev/
307 2016-10-26T20:53:16  *** Chris_Stewart_5 has quit IRC
308 2016-10-26T20:54:14  <jcarter9753> I have not - I will give that a read thanks. Generally the BIP documents are good enough to get going, but in this case I think the BIP is incorrect.
309 2016-10-26T20:54:44  *** Chris_Stewart_5 has joined #bitcoin-dev
310 2016-10-26T20:55:15  <jcarter9753> I have run through all the Script Tests in the json file in the core github repo and they all pass, just the networking side is giving me some trouble for some reason
311 2016-10-26T20:55:23  <murch> okay, yeah well I think jl2012 is one of the principal authors of SegWit
312 2016-10-26T20:55:37  *** Giszmo has quit IRC
313 2016-10-26T20:55:41  <jcarter9753> I will bear that in mind - thanks for your support
314 2016-10-26T20:55:55  <murch> sure
315 2016-10-26T20:57:50  *** Giszmo has joined #bitcoin-dev
316 2016-10-26T21:03:07  <arubi> jcarter9753, if a segwit txo is being redeemed, then having no witness fields for each of the inputs is invalid encoding
317 2016-10-26T21:03:57  <arubi> all inputs should have a witness, 0x00 for non segwit inputs and the actual 0x<num> and stack for segwits
318 2016-10-26T21:04:37  *** matrix1233 has joined #bitcoin-dev
319 2016-10-26T21:08:26  <jcarter9753> Thanks arubi that is what I thought, but is there a VarInt at the start of that block?
320 2016-10-26T21:08:53  <arubi> yep, it says how many in the stack for that input's witness
321 2016-10-26T21:09:26  <jcarter9753> I mean [VarInt:HowManyWitnessScripts] [VarInt:StackSize] [The witness stack items]  [VarInt:StackSize] [The witness stack items]
322 2016-10-26T21:09:40  <jcarter9753> Or does it not have that initial VarInt?
323 2016-10-26T21:09:50  <arubi> oh no, that's implied by the # of inputs
324 2016-10-26T21:10:04  <arubi> the number of VarInt:HowManyWitnessScripts is how many inputs
325 2016-10-26T21:10:18  <arubi> er, "VarInt:HowManyWitnessScript"'s
326 2016-10-26T21:10:52  <jcarter9753> Okay, so when we read the stack items we are not given the whole byte array of the stack items?
327 2016-10-26T21:10:53  <arubi> I'll rephrase
328 2016-10-26T21:11:49  *** matrix1233 has quit IRC
329 2016-10-26T21:11:49  <arubi> [VarInt:HowManyWitnessScripts] <- doesn't exist
330 2016-10-26T21:11:52  *** blueness has quit IRC
331 2016-10-26T21:11:56  <jcarter9753> Understood
332 2016-10-26T21:12:16  <arubi> right as many VarInt:StackSize as inputs, your second question I don't understand
333 2016-10-26T21:12:33  <arubi> you're reading one stack item at a time
334 2016-10-26T21:12:47  <jcarter9753> Thats where I've gone wrong then. I assumed each Input had a Witness Script which was a Script in the Bitcoin sense of the word, that created a Stack, like the Sig Script
335 2016-10-26T21:12:47  <arubi> each has it's own size, and there are as many as varint:stacksize
336 2016-10-26T21:13:19  <jcarter9753> That is exactly what it does have, but because we are not given the whole size of the array we cannot just parse that whole Script
337 2016-10-26T21:13:44  <arubi> that's right
338 2016-10-26T21:13:53  <arubi> but I do like it better that way :)
339 2016-10-26T21:14:28  <jcarter9753> So do I! Less processing on the network side. Anyway, perhaps I will add more tests to the script_tests.json in bitcoin core as all the tests pass with in current implementation =/
340 2016-10-26T21:14:45  <jcarter9753> but the blocks do not process past 873033
341 2016-10-26T21:15:09  <arubi> is that when sw activated?
342 2016-10-26T21:15:12  <jcarter9753> I think I will pop the items, and store them locally as a standard Bitcoin script
343 2016-10-26T21:15:19  <jcarter9753> No, 834624
344 2016-10-26T21:15:46  <arubi> well I don't know about that ^.  I think the beauty here is that it's much easier to "nest" stuff now
345 2016-10-26T21:16:15  *** To7 has joined #bitcoin-dev
346 2016-10-26T21:16:17  <arubi> a stack item doesn't have to "relate" to other items in that witness
347 2016-10-26T21:16:30  <jcarter9753> ok, I will pop the items off and store them in a Bitcoin script format
348 2016-10-26T21:16:53  <jcarter9753> I don't understand, they are placed on the Stack when the script runs?
349 2016-10-26T21:17:47  <arubi> yea that's correct, I'm trying to explain what I mean
350 2016-10-26T21:18:28  *** matrix1233 has joined #bitcoin-dev
351 2016-10-26T21:19:24  <arubi> jcarter9753, I think you got it right there.  I can't think of a way to explain what I mean.  yes it's fine to read the items in there to a stack like normal script is run
352 2016-10-26T21:20:06  <arubi> be prepared for the scripts being run to get more complex, so these things in the witness might not just end up as pubkeys and sigs
353 2016-10-26T21:20:23  <jcarter9753> Okay - Just realised why my tests are passing, they don't actually do any Serialization/Deserialization, the tests construct a Transaction on the fly and populate the data from the json file. I must be creating the test wrong.
354 2016-10-26T21:20:38  <jcarter9753> Yep I have considered that when creating the Program Types
355 2016-10-26T21:20:43  <jcarter9753> P2WPKH etc
356 2016-10-26T21:21:20  <arubi> post segwit, there are new fields in the json for decoderawtransaction
357 2016-10-26T21:22:31  <jcarter9753> I am only using https://github.com/bitcoin/bitcoin/blob/master/src/test/data/script_tests.json
358 2016-10-26T21:22:56  <arubi> oh I see, so what's failing exactly?
359 2016-10-26T21:23:09  <arubi> rather, what's passing when it shouldn't?
360 2016-10-26T21:24:05  <jcarter9753> My test was set up correctly, but when I was deserializing the Tx from the network, I was assuming it was formatted differently, our above discussion.
361 2016-10-26T21:24:10  <jcarter9753> Looks like it is running again now.
362 2016-10-26T21:24:43  <arubi> ah okay, got lost in that code paste
363 2016-10-26T21:24:45  <jcarter9753> I will reset back to the block just before segwit activates and run through again.
364 2016-10-26T21:25:42  <jcarter9753> Thank you very much for your help, I did not want to get into segwit being BIP9:Started without having it implemented
365 2016-10-26T21:25:54  <arubi> welcome jcarter9753
366 2016-10-26T21:27:00  *** mnk has joined #bitcoin-dev
367 2016-10-26T21:27:01  *** murch has quit IRC
368 2016-10-26T21:27:19  *** qu9 has quit IRC
369 2016-10-26T21:31:01  *** priidu has quit IRC
370 2016-10-26T21:31:05  *** herzmeister has quit IRC
371 2016-10-26T21:32:43  *** herzmeister has joined #bitcoin-dev
372 2016-10-26T21:37:14  *** echonaut has quit IRC
373 2016-10-26T21:37:27  *** echonaut has joined #bitcoin-dev
374 2016-10-26T21:39:16  *** matrix1233 has quit IRC
375 2016-10-26T21:41:05  *** matrix1233 has joined #bitcoin-dev
376 2016-10-26T21:50:36  *** blueness has joined #bitcoin-dev
377 2016-10-26T21:53:53  *** bugs_ has quit IRC
378 2016-10-26T21:58:45  *** matrix1233 has quit IRC
379 2016-10-26T22:00:25  *** cdecker has quit IRC
380 2016-10-26T22:04:10  *** janko33 has quit IRC
381 2016-10-26T22:12:08  *** Chris_Stewart_5 has quit IRC
382 2016-10-26T22:14:46  *** Hausdorf is now known as Hausdorf-
383 2016-10-26T22:16:20  *** Chris_Stewart_5 has joined #bitcoin-dev
384 2016-10-26T22:17:55  *** JackH has quit IRC
385 2016-10-26T22:21:50  *** paveljanik has quit IRC
386 2016-10-26T22:23:49  *** jcarter9753 has quit IRC
387 2016-10-26T22:35:25  *** cyphase has quit IRC
388 2016-10-26T22:40:16  *** cyphase has joined #bitcoin-dev
389 2016-10-26T22:52:31  *** Delerium has left #bitcoin-dev
390 2016-10-26T22:59:22  *** cdecker has joined #bitcoin-dev
391 2016-10-26T23:00:19  *** Chris_Stewart_5 has quit IRC
392 2016-10-26T23:07:11  *** sword_smith has joined #bitcoin-dev
393 2016-10-26T23:07:55  *** qu9 has joined #bitcoin-dev
394 2016-10-26T23:10:29  *** cdecker has quit IRC
395 2016-10-26T23:12:10  *** moa has joined #bitcoin-dev
396 2016-10-26T23:12:36  *** NewLiberty has joined #bitcoin-dev
397 2016-10-26T23:13:22  *** qu9 has quit IRC
398 2016-10-26T23:15:34  *** Chris_Stewart_5 has joined #bitcoin-dev
399 2016-10-26T23:28:49  *** qu9 has joined #bitcoin-dev
400 2016-10-26T23:30:23  *** qu9 has quit IRC
401 2016-10-26T23:40:47  *** herzmeister has quit IRC
402 2016-10-26T23:41:07  *** herzmeister has joined #bitcoin-dev