1 2017-11-28T00:00:43 *** RazielZ has joined #bitcoin-dev
2 2017-11-28T00:01:16 *** bule has quit IRC
3 2017-11-28T00:03:56 *** ghost43 has quit IRC
4 2017-11-28T00:04:33 *** Raziel has quit IRC
5 2017-11-28T00:04:51 *** ghost43 has joined #bitcoin-dev
6 2017-11-28T00:10:10 *** ghost43 has quit IRC
7 2017-11-28T00:10:45 *** ghost43 has joined #bitcoin-dev
8 2017-11-28T00:17:42 *** jungly has quit IRC
9 2017-11-28T00:34:51 *** dqx__ has joined #bitcoin-dev
10 2017-11-28T00:37:53 *** dqx_ has quit IRC
11 2017-11-28T00:47:23 *** damons_is_away is now known as damons
12 2017-11-28T00:51:54 *** Chris_Stewart_5 has joined #bitcoin-dev
13 2017-11-28T00:56:56 *** dviola has joined #bitcoin-dev
14 2017-11-28T00:57:14 *** dabura667 has joined #bitcoin-dev
15 2017-11-28T00:58:11 *** dqx_ has joined #bitcoin-dev
16 2017-11-28T00:59:46 *** Squidicuz has quit IRC
17 2017-11-28T01:00:08 *** PaulCapestany has quit IRC
18 2017-11-28T01:01:32 *** dqx__ has quit IRC
19 2017-11-28T01:02:19 *** PaulCapestany has joined #bitcoin-dev
20 2017-11-28T01:03:37 *** l3gion has quit IRC
21 2017-11-28T01:05:45 *** dqx_ has quit IRC
22 2017-11-28T01:14:45 *** RazielXYZ has joined #bitcoin-dev
23 2017-11-28T01:18:08 *** RazielZ has quit IRC
24 2017-11-28T01:24:00 *** iv3c has quit IRC
25 2017-11-28T01:24:20 *** iv3c has joined #bitcoin-dev
26 2017-11-28T02:00:13 *** Victorsueca has quit IRC
27 2017-11-28T02:01:21 *** Victorsueca has joined #bitcoin-dev
28 2017-11-28T02:13:21 *** Chris_Stewart_5 has quit IRC
29 2017-11-28T02:17:04 *** bule2 has quit IRC
30 2017-11-28T02:17:21 *** bule2 has joined #bitcoin-dev
31 2017-11-28T02:18:22 *** mr_burdell has quit IRC
32 2017-11-28T02:20:34 *** mr_burdell has joined #bitcoin-dev
33 2017-11-28T02:21:27 *** kallewoof has quit IRC
34 2017-11-28T02:23:12 *** brand0 has quit IRC
35 2017-11-28T02:24:17 *** justanotheruser has quit IRC
36 2017-11-28T02:26:52 *** justanotheruser has joined #bitcoin-dev
37 2017-11-28T02:27:00 *** justanotheruser has quit IRC
38 2017-11-28T02:27:18 *** justanotheruser has joined #bitcoin-dev
39 2017-11-28T02:28:47 *** brand0 has joined #bitcoin-dev
40 2017-11-28T02:29:04 *** wxss has quit IRC
41 2017-11-28T02:33:43 *** brianhoffman_ has joined #bitcoin-dev
42 2017-11-28T02:35:00 *** Belxjander has quit IRC
43 2017-11-28T02:35:57 *** brianhoffman has quit IRC
44 2017-11-28T02:35:58 *** brianhoffman_ is now known as brianhoffman
45 2017-11-28T02:36:51 *** Belxjander has joined #bitcoin-dev
46 2017-11-28T03:05:53 *** subo has joined #bitcoin-dev
47 2017-11-28T03:10:09 *** jtimon has quit IRC
48 2017-11-28T03:10:35 *** subo_ has quit IRC
49 2017-11-28T03:27:03 *** Chris_Stewart_5 has joined #bitcoin-dev
50 2017-11-28T03:27:27 *** meshcollider has quit IRC
51 2017-11-28T03:35:51 *** dviola has quit IRC
52 2017-11-28T03:59:59 *** Chris_Stewart_5 has quit IRC
53 2017-11-28T04:22:41 *** DougieBot5000_ has joined #bitcoin-dev
54 2017-11-28T04:24:33 *** DougieBot5000 has quit IRC
55 2017-11-28T04:24:40 *** DougieBot5000_ is now known as DougieBot5000
56 2017-11-28T04:26:38 *** Belxjander has quit IRC
57 2017-11-28T04:28:26 *** Belxjander has joined #bitcoin-dev
58 2017-11-28T04:29:05 *** wizkid057 has quit IRC
59 2017-11-28T04:29:52 *** wizkid057 has joined #bitcoin-dev
60 2017-11-28T04:38:22 *** damons is now known as damons_is_away
61 2017-11-28T04:40:27 *** iv3c has quit IRC
62 2017-11-28T04:52:38 *** StopAndDecrypt has quit IRC
63 2017-11-28T04:53:27 *** StopAndDecrypt has joined #bitcoin-dev
64 2017-11-28T05:03:41 *** dabura667 has quit IRC
65 2017-11-28T05:14:07 *** StopAndDecrypt has quit IRC
66 2017-11-28T05:14:13 *** StopAndDecrypt_ has joined #bitcoin-dev
67 2017-11-28T05:18:58 *** JackH has quit IRC
68 2017-11-28T05:48:16 *** bule has joined #bitcoin-dev
69 2017-11-28T05:50:12 *** ghost43 has quit IRC
70 2017-11-28T05:50:37 *** bule2 has quit IRC
71 2017-11-28T05:50:39 *** ghost43 has joined #bitcoin-dev
72 2017-11-28T06:11:34 *** meshcollider has joined #bitcoin-dev
73 2017-11-28T06:20:25 *** d9b4bef9 has quit IRC
74 2017-11-28T06:21:20 *** d9b4bef9 has joined #bitcoin-dev
75 2017-11-28T06:23:59 *** Belxjander has quit IRC
76 2017-11-28T06:29:10 *** Victorsueca has quit IRC
77 2017-11-28T06:29:18 *** Belxjander has joined #bitcoin-dev
78 2017-11-28T06:30:21 *** Victorsueca has joined #bitcoin-dev
79 2017-11-28T06:32:11 *** LeMiner has joined #bitcoin-dev
80 2017-11-28T06:36:15 *** ghost43 has quit IRC
81 2017-11-28T06:36:17 *** wizkid057 has quit IRC
82 2017-11-28T06:37:00 *** ghost43 has joined #bitcoin-dev
83 2017-11-28T06:52:36 *** esotericnonsense is now known as triggered
84 2017-11-28T06:52:49 *** triggered is now known as esotericnonsense
85 2017-11-28T07:18:32 *** ongolaBoy has joined #bitcoin-dev
86 2017-11-28T07:27:59 *** Cogito_Ergo_Sum has joined #bitcoin-dev
87 2017-11-28T07:32:49 *** one_zero has quit IRC
88 2017-11-28T07:41:04 *** bule has quit IRC
89 2017-11-28T07:41:27 *** bule has joined #bitcoin-dev
90 2017-11-28T07:48:24 *** BashCo has quit IRC
91 2017-11-28T07:48:56 *** dabura667 has joined #bitcoin-dev
92 2017-11-28T08:03:17 *** Mottengrotte_ has joined #bitcoin-dev
93 2017-11-28T08:07:12 *** Belxjander has quit IRC
94 2017-11-28T08:08:01 *** JackH has joined #bitcoin-dev
95 2017-11-28T08:10:14 *** BashCo has joined #bitcoin-dev
96 2017-11-28T08:13:29 *** Belxjander has joined #bitcoin-dev
97 2017-11-28T08:17:59 *** Cogito_Ergo_Sum has quit IRC
98 2017-11-28T08:18:25 *** dabura667 has quit IRC
99 2017-11-28T08:18:37 *** dabura667 has joined #bitcoin-dev
100 2017-11-28T08:18:42 *** Newyorkadam has joined #bitcoin-dev
101 2017-11-28T08:28:21 *** Belxjander has quit IRC
102 2017-11-28T08:30:00 *** Mottengrotte__ has joined #bitcoin-dev
103 2017-11-28T08:31:19 *** meshcollider has quit IRC
104 2017-11-28T08:32:42 *** wizkid057 has joined #bitcoin-dev
105 2017-11-28T08:33:38 *** Mottengrotte_ has quit IRC
106 2017-11-28T08:35:03 *** Belxjander has joined #bitcoin-dev
107 2017-11-28T08:35:56 *** bule has quit IRC
108 2017-11-28T08:37:41 *** dqx has quit IRC
109 2017-11-28T08:39:46 *** SopaXorzTaker has quit IRC
110 2017-11-28T08:40:38 *** SopaXorzTaker has joined #bitcoin-dev
111 2017-11-28T08:47:33 *** dqx has joined #bitcoin-dev
112 2017-11-28T08:47:37 *** Logicwax has quit IRC
113 2017-11-28T08:52:55 *** Logicwax has joined #bitcoin-dev
114 2017-11-28T08:57:54 *** Krellan has joined #bitcoin-dev
115 2017-11-28T09:13:11 *** txter has joined #bitcoin-dev
116 2017-11-28T09:22:30 *** Newyorkadam has quit IRC
117 2017-11-28T09:26:25 *** Belxjander has quit IRC
118 2017-11-28T09:32:37 *** Belxjander has joined #bitcoin-dev
119 2017-11-28T09:47:17 *** Belxjander has quit IRC
120 2017-11-28T09:49:19 *** Belxjander has joined #bitcoin-dev
121 2017-11-28T10:11:27 *** Belxjander has quit IRC
122 2017-11-28T10:12:15 *** d9b4bef9 has quit IRC
123 2017-11-28T10:13:21 *** d9b4bef9 has joined #bitcoin-dev
124 2017-11-28T10:14:40 *** meshcollider has joined #bitcoin-dev
125 2017-11-28T10:17:41 *** Belxjander has joined #bitcoin-dev
126 2017-11-28T10:27:05 *** Belxjander has quit IRC
127 2017-11-28T10:28:51 *** Belxjander has joined #bitcoin-dev
128 2017-11-28T10:30:59 *** dabura667 has quit IRC
129 2017-11-28T11:03:06 *** Victorsueca has quit IRC
130 2017-11-28T11:04:22 *** Victorsueca has joined #bitcoin-dev
131 2017-11-28T11:11:11 *** belcher has joined #bitcoin-dev
132 2017-11-28T11:16:15 *** Krellan has quit IRC
133 2017-11-28T11:17:44 *** Krellan has joined #bitcoin-dev
134 2017-11-28T11:28:50 *** txter has quit IRC
135 2017-11-28T11:46:42 *** jtimon has joined #bitcoin-dev
136 2017-11-28T11:48:45 *** ula has joined #bitcoin-dev
137 2017-11-28T11:55:34 *** Skirmant has joined #bitcoin-dev
138 2017-11-28T11:56:23 *** nazarewk has joined #bitcoin-dev
139 2017-11-28T12:00:16 *** sdfgsdfg has joined #bitcoin-dev
140 2017-11-28T12:19:42 *** DTZUZO has quit IRC
141 2017-11-28T12:33:58 *** meshcollider has quit IRC
142 2017-11-28T12:34:11 *** ghost43 has quit IRC
143 2017-11-28T12:34:52 *** ghost43 has joined #bitcoin-dev
144 2017-11-28T12:43:21 *** dqx has quit IRC
145 2017-11-28T12:51:10 *** tomdickharry has joined #bitcoin-dev
146 2017-11-28T12:52:30 <tomdickharry> hi, i'm trying to find a wallet file on a computer, the file has no extension. im running windows and can't find a hex editor that can search a disk....anyone got any ideas? thanks
147 2017-11-28T12:55:58 *** Guyver2 has joined #bitcoin-dev
148 2017-11-28T12:56:59 *** txter has joined #bitcoin-dev
149 2017-11-28T12:58:43 *** iv3c has joined #bitcoin-dev
150 2017-11-28T13:07:23 *** txter has quit IRC
151 2017-11-28T13:12:34 *** Cogito_Ergo_Sum has joined #bitcoin-dev
152 2017-11-28T13:13:04 *** Chris_Stewart_5 has joined #bitcoin-dev
153 2017-11-28T13:18:27 *** czaanja_ has joined #bitcoin-dev
154 2017-11-28T13:22:53 *** txter has joined #bitcoin-dev
155 2017-11-28T13:24:58 *** sdfgsdfg has quit IRC
156 2017-11-28T13:37:11 *** Krellan has quit IRC
157 2017-11-28T13:37:39 *** belcher has quit IRC
158 2017-11-28T13:37:40 *** photonclock_ has quit IRC
159 2017-11-28T13:38:12 *** Krellan has joined #bitcoin-dev
160 2017-11-28T13:43:27 *** Chris_Stewart_5 has quit IRC
161 2017-11-28T14:00:13 *** Victorsueca has quit IRC
162 2017-11-28T14:01:22 *** Victorsueca has joined #bitcoin-dev
163 2017-11-28T14:07:07 *** Chris_Stewart_5 has joined #bitcoin-dev
164 2017-11-28T14:29:01 *** agricocb has quit IRC
165 2017-11-28T14:29:41 *** cyber55 has quit IRC
166 2017-11-28T14:30:10 *** ghost43 has quit IRC
167 2017-11-28T14:30:48 *** Skirmant has quit IRC
168 2017-11-28T14:31:04 *** ghost43 has joined #bitcoin-dev
169 2017-11-28T14:40:57 *** paul0 has joined #bitcoin-dev
170 2017-11-28T14:51:56 *** Giszmo has quit IRC
171 2017-11-28T14:52:03 *** Genitrust has joined #bitcoin-dev
172 2017-11-28T14:52:11 *** Genitrust is now known as rgenito
173 2017-11-28T14:52:24 <rgenito> heyyyyy
174 2017-11-28T14:52:50 <rgenito> how do you use SIGHASH_FORKID in the signature?
175 2017-11-28T14:53:08 <rgenito> whilst broadcasting for Bitcoin Cash, I'm getting "16: mandatory-script-verify-flag-failed (Signature must use SIGHASH_FORKID). Code:-26"
176 2017-11-28T14:53:22 <rgenito> been googling around. any tips will be great! I'm doing all of this straight from the command line
177 2017-11-28T14:54:21 *** Giszmo has joined #bitcoin-dev
178 2017-11-28T14:54:41 *** agricocb has joined #bitcoin-dev
179 2017-11-28T14:57:20 *** agricocb has quit IRC
180 2017-11-28T14:58:17 *** agricocb has joined #bitcoin-dev
181 2017-11-28T14:58:50 *** kexkey has joined #bitcoin-dev
182 2017-11-28T14:59:22 <wumpus> what did you use to sign?
183 2017-11-28T15:00:13 <wumpus> there are hacks floating around to patch bitcoin core to sign transactions for bch, for example: https://github.com/laanwj/bitcoin/commit/98f79a7243bbc5eccee2649ef19178c1908dc555 then use signrawtransaction with "ALL|ABC"
184 2017-11-28T15:02:07 *** nazarewk has quit IRC
185 2017-11-28T15:03:01 *** bugs_ has joined #bitcoin-dev
186 2017-11-28T15:04:52 *** photonclock_ has joined #bitcoin-dev
187 2017-11-28T15:14:31 <rgenito> wumpus: i used the bitcoin cash version of bitcoin unlimited
188 2017-11-28T15:14:48 *** dviola has joined #bitcoin-dev
189 2017-11-28T15:15:06 <rgenito> wumpus: https://www.bitcoinunlimited.info/download
190 2017-11-28T15:15:09 <rgenito> and thank you for the response! :)
191 2017-11-28T15:15:11 *** ghost43 has quit IRC
192 2017-11-28T15:16:09 *** ghost43 has joined #bitcoin-dev
193 2017-11-28T15:19:35 <wumpus> ok can't help you with that
194 2017-11-28T15:20:36 <wumpus> apparently your client signed the transaction for bitcoin instead of bcash
195 2017-11-28T15:21:45 <rgenito> wumpus: ah ok, ya.... i'll agree.
196 2017-11-28T15:22:00 <rgenito> wumpus: what bitcoin cash node do you recommend then for manual transactions? apparently bitcoin unlimited isn't the answer
197 2017-11-28T15:30:56 <rgenito> wumpus: ok i got bitcoinabc :)
198 2017-11-28T15:31:10 <rgenito> *sigh*, signing a transaction is now "missing Amount"
199 2017-11-28T15:31:17 *** ingenius has quit IRC
200 2017-11-28T15:51:07 *** StopAndDecrypt_ has quit IRC
201 2017-11-28T15:51:18 *** StopAndDecrypt has joined #bitcoin-dev
202 2017-11-28T15:57:07 *** Krellan has quit IRC
203 2017-11-28T16:18:30 *** RazielXYZ is now known as Raziel
204 2017-11-28T16:23:49 *** JackH has quit IRC
205 2017-11-28T16:34:17 *** czaanja_ has quit IRC
206 2017-11-28T16:36:05 *** czaanja_ has joined #bitcoin-dev
207 2017-11-28T16:36:47 *** JackH has joined #bitcoin-dev
208 2017-11-28T16:54:52 *** wxss has joined #bitcoin-dev
209 2017-11-28T16:55:17 *** DTZUZO has joined #bitcoin-dev
210 2017-11-28T17:01:15 *** Victorsueca has quit IRC
211 2017-11-28T17:02:37 *** Victorsueca has joined #bitcoin-dev
212 2017-11-28T17:04:15 <cluelessperson> Can someone help me understand SegWit from the ground up?
213 2017-11-28T17:06:05 *** Mottengrotte__ has quit IRC
214 2017-11-28T17:06:30 *** bule has joined #bitcoin-dev
215 2017-11-28T17:07:08 *** Chris_Stewart_5 has quit IRC
216 2017-11-28T17:08:26 *** Belxjander has quit IRC
217 2017-11-28T17:09:51 *** Belxjander has joined #bitcoin-dev
218 2017-11-28T17:12:59 *** rgenito has quit IRC
219 2017-11-28T17:13:32 *** garit has joined #bitcoin-dev
220 2017-11-28T17:14:21 *** one_zero has joined #bitcoin-dev
221 2017-11-28T17:22:59 *** iv3c has quit IRC
222 2017-11-28T17:23:19 *** iv3c has joined #bitcoin-dev
223 2017-11-28T17:30:21 *** dviola has quit IRC
224 2017-11-28T17:31:53 <mlz> cluelessperson, start with this video: https://www.youtube.com/watch?v=zchzn7aPQjI&feature=youtu.be&t=101
225 2017-11-28T17:34:51 <cluelessperson> mlz: thanks
226 2017-11-28T17:35:17 <cluelessperson> mlz: I've observed that SegWit moves signature information "witness data" into a "SegWit field" in the block
227 2017-11-28T17:35:33 <cluelessperson> also, I'm confused by something
228 2017-11-28T17:35:46 <cluelessperson> Are blocks effectively a larger size in bytes as a result of segwit?
229 2017-11-28T17:36:01 <cluelessperson> segwit has an "effective weight" of 4 million weight units
230 2017-11-28T17:37:25 *** lucdalt has joined #bitcoin-dev
231 2017-11-28T17:38:35 <arubi> it's not true that segwit moves script and signature data to a different place in a block. it does move it to a different place within a transaction, and also commits to all the witness data as an output in the generation transaction
232 2017-11-28T17:39:14 <arubi> yes for the second question. it's valid now to have a block that's almost 4 megabytes and made up of almost 4 million witness bytes
233 2017-11-28T17:39:29 <arubi> it's "almost" because the non witness data would just be the generation transaction itself
234 2017-11-28T17:40:49 *** umarucchi has joined #bitcoin-dev
235 2017-11-28T17:40:50 *** BashCo has quit IRC
236 2017-11-28T17:45:22 *** dqx has joined #bitcoin-dev
237 2017-11-28T17:45:29 *** umarucchi has quit IRC
238 2017-11-28T17:46:15 *** jtimon has quit IRC
239 2017-11-28T17:48:05 <cluelessperson> arubi: yeah, that's what I meant, sorry.
240 2017-11-28T17:48:16 <cluelessperson> arubi: What's a generation transaction?
241 2017-11-28T17:48:32 <arubi> what's usually called coinbase transaction
242 2017-11-28T17:48:41 *** damons_is_away is now known as damons
243 2017-11-28T17:48:42 <cluelessperson> ah, got it
244 2017-11-28T17:48:53 <arubi> it's not a good name because "coinbase" is a term in itself
245 2017-11-28T17:49:09 <arubi> same ambiguity with the term "scriptsig" :(
246 2017-11-28T17:49:28 <cluelessperson> arubi: I'm confused because some people have almost demanded a blocksize increase, and I believe I saw it reasoned that even 2MB is so much, I don't understand why SegWit enables 4 megabytes
247 2017-11-28T17:49:34 <cluelessperson> isn't that still too much?
248 2017-11-28T17:50:44 <arubi> it's a lot yea, I agree
249 2017-11-28T17:51:28 <cluelessperson> arubi: I feel I've been misled or that I'm still confused.
250 2017-11-28T17:51:37 <arubi> how so?
251 2017-11-28T17:54:54 <mlz> arubi, miners can mine their block rewards to a Segwit address, correct?
252 2017-11-28T17:55:01 <arubi> sure
253 2017-11-28T17:59:09 *** POJO has joined #bitcoin-dev
254 2017-11-28T18:02:45 *** garit has quit IRC
255 2017-11-28T18:04:51 *** Chris_Stewart_5 has joined #bitcoin-dev
256 2017-11-28T18:12:34 *** DTZUZO has quit IRC
257 2017-11-28T18:15:41 *** DTZUZO has joined #bitcoin-dev
258 2017-11-28T18:16:47 *** Krellan has joined #bitcoin-dev
259 2017-11-28T18:17:01 *** lucdalt has quit IRC
260 2017-11-28T18:22:31 *** BashCo has joined #bitcoin-dev
261 2017-11-28T18:27:34 *** dviola has joined #bitcoin-dev
262 2017-11-28T18:32:05 *** Krellan has quit IRC
263 2017-11-28T18:34:14 *** nyberg has joined #bitcoin-dev
264 2017-11-28T18:35:37 *** ongolaBoy has quit IRC
265 2017-11-28T18:57:55 <cluelessperson> arubi: Because, we've specifically fought against a block size increase.
266 2017-11-28T18:57:58 *** Belxjander has quit IRC
267 2017-11-28T18:59:28 *** Belxjander has joined #bitcoin-dev
268 2017-11-28T19:01:05 <arubi> well, segwit fixes a lot of issues with just a blunt increase. this increase is done in a safe way
269 2017-11-28T19:02:22 <cluelessperson> arubi: What does that mean? I'm all for fixing transaction malleuability, but I'm concerned with the current transaction system still in place.
270 2017-11-28T19:02:32 <cluelessperson> people aren't using segwit yet
271 2017-11-28T19:03:12 <arubi> a block can't have more than 1 megabyte of non witness bytes
272 2017-11-28T19:03:36 <arubi> it's not the size itself that's the issue, it's validation
273 2017-11-28T19:03:44 <arubi> and segwit
274 2017-11-28T19:03:59 <arubi> and segwit's bip143 fixes a lot of validation slowdowns
275 2017-11-28T19:05:05 *** damons has quit IRC
276 2017-11-28T19:06:09 *** Belxjander has quit IRC
277 2017-11-28T19:06:55 <arubi> transaction malleability is fixed just by moving the signature data to the witness area in a transaction. segwit the software made specific scripts' executed checksig operation to behave in a safer manner when hashing the transaction data
278 2017-11-28T19:07:59 *** damons has joined #bitcoin-dev
279 2017-11-28T19:08:01 <cluelessperson> arubi: I don't understand.
280 2017-11-28T19:08:59 *** Belxjander has joined #bitcoin-dev
281 2017-11-28T19:10:20 <arubi> it's a lot less resource intensive to validate checksigs in segwit scripts than it is in pre-segwit scripts like p2pkh. basically pre-segwit checksigs are hashing the transaction in a way where each checksig hashes entirely different data
282 2017-11-28T19:11:03 <arubi> you have to set up the "sighash" from scratch for each input where a checksig is made, so many inputs and many outputs in a single transaction can get to a very large amount of hashed data
283 2017-11-28T19:12:39 <arubi> with segwit, you set up the data to be signed in such a way that the vast majority can be re-used by other checksigs (or verifies)
284 2017-11-28T19:15:26 <arubi> the difference is, say you have an unsigned transaction with 10 inputs, and its size is 1kb, then a verifier would be hashing 10kb of data to check it. 1kb for each checksig in each input
285 2017-11-28T19:16:08 <arubi> so if the consensus maximum is 20,000 checksigs in a block, and a block size (pre-segwit) is 1 megabyte, then you can guess what the worst case is :)
286 2017-11-28T19:16:46 <arubi> well, it's a bit less than 1mb*20000, but not by a lot hehe
287 2017-11-28T19:21:30 *** alt0id has joined #bitcoin-dev
288 2017-11-28T19:21:31 <alt0id> hey
289 2017-11-28T19:21:35 <alt0id> any dev's here?
290 2017-11-28T19:21:41 <alt0id> devs*
291 2017-11-28T19:22:07 <alt0id> why does my btc client sometimes stop downloading data when syncing?
292 2017-11-28T19:24:18 <eck> I have a question about the p2p protocol... for 'addr' messages, am I supposed to use the current timestamp, or the timestamp I last talked to the node I'm advertising?
293 2017-11-28T19:26:08 <Chris_Stewart_5> alt0id: I'm guessing, but it might be to verify that the blocks you received are correct
294 2017-11-28T19:26:22 *** nyberg has quit IRC
295 2017-11-28T19:26:42 <Chris_Stewart_5> alt0id: I think you could attack a node by sending a BUNCH of data at once, and then let them verify it after the fact
296 2017-11-28T19:27:12 <Chris_Stewart_5> if you sync x blocks, verify those x blocks, sync x block again, verify x blocks again
297 2017-11-28T19:27:25 <Chris_Stewart_5> you don't have to worry about that attack vector. Again i am guessing though
298 2017-11-28T19:28:13 <Chris_Stewart_5> eck: https://bitcoin.org/en/developer-reference#addr
299 2017-11-28T19:28:27 <Chris_Stewart_5> "Nodes advertising IP addresses theyâve connected to set this to the last time they connected to that node"
300 2017-11-28T19:28:38 <eck> thanks
301 2017-11-28T19:28:50 <eck> I was looking at the wiki protocol docs, I should use this instead
302 2017-11-28T19:28:57 <Chris_Stewart_5> np
303 2017-11-28T19:41:11 *** percent20 has quit IRC
304 2017-11-28T19:46:46 *** marcoagner has joined #bitcoin-dev
305 2017-11-28T19:47:38 *** bule has quit IRC
306 2017-11-28T19:52:59 *** lucdalt has joined #bitcoin-dev
307 2017-11-28T19:54:00 *** Krellan has joined #bitcoin-dev
308 2017-11-28T19:57:23 *** Krellan has quit IRC
309 2017-11-28T19:58:11 *** Krellan_ has joined #bitcoin-dev
310 2017-11-28T19:58:20 <alt0id> Chris_Stewart_5: so closing/re-connecting is a bad idea?
311 2017-11-28T19:59:14 *** PaulCapestany has quit IRC
312 2017-11-28T19:59:46 *** jtimon has joined #bitcoin-dev
313 2017-11-28T20:02:53 *** PaulCapestany has joined #bitcoin-dev
314 2017-11-28T20:04:19 *** bule has joined #bitcoin-dev
315 2017-11-28T20:18:02 *** paveljanik has joined #bitcoin-dev
316 2017-11-28T20:23:01 <cluelessperson> alt0id: who knows, reorgnization, compression, etc?
317 2017-11-28T20:24:12 *** marcoagner has quit IRC
318 2017-11-28T20:33:03 *** Giszmo has quit IRC
319 2017-11-28T20:33:09 *** teward has quit IRC
320 2017-11-28T20:34:01 *** agricocb has quit IRC
321 2017-11-28T20:37:30 *** marcoagner has joined #bitcoin-dev
322 2017-11-28T20:40:32 *** dviola has quit IRC
323 2017-11-28T20:40:55 *** teward has joined #bitcoin-dev
324 2017-11-28T20:54:46 *** agricocb has joined #bitcoin-dev
325 2017-11-28T21:00:56 *** Dizzle has joined #bitcoin-dev
326 2017-11-28T21:06:33 *** teward has quit IRC
327 2017-11-28T21:10:08 *** marcoagner has quit IRC
328 2017-11-28T21:13:15 <cluelessperson> Can someone help me understand how to communicate with nodes via python?
329 2017-11-28T21:13:34 <eck> for the p2p protocol?
330 2017-11-28T21:13:56 <eck> or the json rpc protocol?
331 2017-11-28T21:14:23 *** teward has joined #bitcoin-dev
332 2017-11-28T21:14:37 <eck> this is the de facto standard for python https://github.com/jgarzik/python-bitcoinrpc
333 2017-11-28T21:14:44 <cluelessperson> eck: the p2p
334 2017-11-28T21:15:12 <eck> https://github.com/petertodd/python-bitcoinlib
335 2017-11-28T21:15:21 <cluelessperson> eck: Aren't those both for the rpc?
336 2017-11-28T21:15:37 <eck> bitcoinlib can parse the p2p network messages
337 2017-11-28T21:16:06 <cluelessperson> eck: I want to learn how to parse them myself.
338 2017-11-28T21:16:07 <eck> i am writing a p2p client in c++ right now, the protocol is pretty simple if you want to try to write your own
339 2017-11-28T21:16:39 <cluelessperson> eck: Yes, that's whta I'm looking for
340 2017-11-28T21:18:08 <eck> this is what i have so far for the encoding/decoding logic https://github.com/eklitzke/spv/blob/master/src/message.cc
341 2017-11-28T21:18:26 <eck> https://bitcoin.org/en/developer-reference describes all the messages
342 2017-11-28T21:19:10 <eck> it would be a lot less code in python due to how much easier reflection is in python
343 2017-11-28T21:20:15 <cluelessperson> eck: I don't know ++ :/
344 2017-11-28T21:21:02 <eck> tl;dr is you do some dns lookups to some seeds, use those to bootstrap your peer list
345 2017-11-28T21:21:15 <eck> and then it's a pretty simple framed protocol as described in the bitcoin.org docs
346 2017-11-28T21:21:23 <cluelessperson> eck: how do I connect to and query a node though?
347 2017-11-28T21:21:30 <cluelessperson> say I hopen a socket
348 2017-11-28T21:21:54 <eck> you bootstrap the list using dns, then later you get peer announcements from your peers. the peers all listen on a well known port.
349 2017-11-28T21:22:12 <cluelessperson> eck: I'm having trouble with the communication part
350 2017-11-28T21:22:16 <cluelessperson> like, how do they wrap messages?
351 2017-11-28T21:22:24 <eck> it's a framed protocol over tcp
352 2017-11-28T21:22:34 <cluelessperson> what protocol?
353 2017-11-28T21:22:41 <eck> the message frame has a magic constant, the message type, the payload length, and a checksum
354 2017-11-28T21:22:46 <cluelessperson> ah
355 2017-11-28T21:22:50 <cluelessperson> that's all?
356 2017-11-28T21:22:51 <eck> custom framed protocol on top of tcp
357 2017-11-28T21:22:56 <eck> well after that there's a payload
358 2017-11-28T21:23:00 <eck> which you need to decode as well
359 2017-11-28T21:23:14 <cluelessperson> decode? you mean deserialize?
360 2017-11-28T21:23:16 <eck> you can skip the message types you don't understand though, since the message header has the payload size
361 2017-11-28T21:26:11 <eck> the protocol is kind of stateful, so if you want to try to write your own client i recommend using an event loop (e.g. tornado for python) to handle timers and whatnot
362 2017-11-28T21:26:18 *** lucdalt has quit IRC
363 2017-11-28T21:33:08 <cluelessperson> eck: I'm not at all familmiar with tornado
364 2017-11-28T21:33:13 <cluelessperson> eck: what do you mean stateful?
365 2017-11-28T21:37:31 *** paveljanik has quit IRC
366 2017-11-28T21:37:59 *** dqx has quit IRC
367 2017-11-28T21:41:20 *** dqx has joined #bitcoin-dev
368 2017-11-28T21:42:38 *** dqx has quit IRC
369 2017-11-28T21:45:40 *** dqx has joined #bitcoin-dev
370 2017-11-28T21:46:24 *** dqx has quit IRC
371 2017-11-28T21:46:56 *** dqx has joined #bitcoin-dev
372 2017-11-28T21:48:57 *** Victorsueca has quit IRC
373 2017-11-28T21:50:07 *** Victorsueca has joined #bitcoin-dev
374 2017-11-28T21:56:44 <eck> some of the message types are request/response where you need to remember your request to validate the response, and some things are supposed to be expired from memory after different amounts of time
375 2017-11-28T21:58:37 *** kexkey has quit IRC
376 2017-11-28T22:39:12 *** Cogito_Ergo_Sum has quit IRC
377 2017-11-28T22:44:29 *** Chris_Stewart_5 has quit IRC
378 2017-11-28T22:56:03 *** meshcollider has joined #bitcoin-dev
379 2017-11-28T22:57:52 *** gnubeard has joined #bitcoin-dev
380 2017-11-28T23:02:08 *** bugs_ has quit IRC
381 2017-11-28T23:10:06 *** dviola has joined #bitcoin-dev
382 2017-11-28T23:10:52 *** Belxjander has quit IRC
383 2017-11-28T23:13:16 *** Belxjander has joined #bitcoin-dev
384 2017-11-28T23:19:50 *** Guyver2 has quit IRC
385 2017-11-28T23:21:46 *** Dizzle has quit IRC
386 2017-11-28T23:24:05 *** dqx has quit IRC
387 2017-11-28T23:24:53 *** andyjdee has joined #bitcoin-dev
388 2017-11-28T23:27:01 *** dqx has joined #bitcoin-dev
389 2017-11-28T23:29:34 *** gnubeard has quit IRC
390 2017-11-28T23:30:07 *** dviola has quit IRC
391 2017-11-28T23:30:55 *** gnubeard has joined #bitcoin-dev
392 2017-11-28T23:32:05 *** dviola has joined #bitcoin-dev
393 2017-11-28T23:36:37 *** ctya has joined #bitcoin-dev
394 2017-11-28T23:40:51 *** dqx has quit IRC
395 2017-11-28T23:42:17 *** dqx has joined #bitcoin-dev
396 2017-11-28T23:42:36 *** qrestlove has quit IRC
397 2017-11-28T23:45:39 *** gnubeard has quit IRC
398 2017-11-28T23:48:05 *** andyjdee has quit IRC
399 2017-11-28T23:56:22 *** dqx has quit IRC
400 2017-11-28T23:57:33 *** dqx has joined #bitcoin-dev