1 2018-03-26T00:00:03  *** weez17 has quit IRC
  2 2018-03-26T00:00:34  *** weez17 has joined #bitcoin-dev
  3 2018-03-26T00:00:38  *** agricocb has joined #bitcoin-dev
  4 2018-03-26T00:11:21  *** Krellan has quit IRC
  5 2018-03-26T00:19:21  *** Victorsueca has quit IRC
  6 2018-03-26T00:20:36  *** Victorsueca has joined #bitcoin-dev
  7 2018-03-26T00:23:59  *** mandric has joined #bitcoin-dev
  8 2018-03-26T00:24:59  *** CheckDavid has quit IRC
  9 2018-03-26T00:26:53  *** dcousens has joined #bitcoin-dev
 10 2018-03-26T00:30:26  *** moneyball has quit IRC
 11 2018-03-26T00:32:49  *** r251d has quit IRC
 12 2018-03-26T00:41:39  *** promag has quit IRC
 13 2018-03-26T00:46:08  *** d9b4bef9 has joined #bitcoin-dev
 14 2018-03-26T00:50:40  *** colatkinson has joined #bitcoin-dev
 15 2018-03-26T00:53:41  *** r251d has joined #bitcoin-dev
 16 2018-03-26T01:00:32  *** avocado has quit IRC
 17 2018-03-26T01:06:27  *** colatkinson has quit IRC
 18 2018-03-26T01:11:30  *** avocado has joined #bitcoin-dev
 19 2018-03-26T01:13:44  *** moneyball has joined #bitcoin-dev
 20 2018-03-26T01:36:22  *** qwertzlcoatl has joined #bitcoin-dev
 21 2018-03-26T01:37:58  *** one_zero has joined #bitcoin-dev
 22 2018-03-26T01:38:12  *** qwertzlcoatl has quit IRC
 23 2018-03-26T01:39:23  *** Victorsueca has quit IRC
 24 2018-03-26T01:40:36  *** Victorsueca has joined #bitcoin-dev
 25 2018-03-26T01:45:50  *** r251d has quit IRC
 26 2018-03-26T01:50:10  *** moneyball has quit IRC
 27 2018-03-26T01:53:05  *** Randolf has joined #bitcoin-dev
 28 2018-03-26T01:58:03  *** r251d has joined #bitcoin-dev
 29 2018-03-26T01:59:08  *** mandric has quit IRC
 30 2018-03-26T02:02:31  *** damons has quit IRC
 31 2018-03-26T02:10:32  *** r251d has quit IRC
 32 2018-03-26T02:14:59  *** r251d has joined #bitcoin-dev
 33 2018-03-26T02:15:42  *** ula has quit IRC
 34 2018-03-26T02:18:57  *** harrymm has quit IRC
 35 2018-03-26T02:22:56  *** full-noder___ has joined #bitcoin-dev
 36 2018-03-26T02:24:41  *** agricocb has joined #bitcoin-dev
 37 2018-03-26T02:27:06  *** damons has joined #bitcoin-dev
 38 2018-03-26T02:27:21  *** r251d has quit IRC
 39 2018-03-26T02:28:25  *** full-noder___ has quit IRC
 40 2018-03-26T02:32:04  *** full-noder___ has joined #bitcoin-dev
 41 2018-03-26T02:32:06  *** r251d has joined #bitcoin-dev
 42 2018-03-26T02:36:48  <full-noder___> noob here. Apologies in advance.
 43 2018-03-26T02:37:11  <full-noder___> Any way of going about learning how to develop apps besides running a full node?
 44 2018-03-26T02:37:12  <Randolf> full-noder___:  I reject your apology.  There's no need to apologize for being new at something.
 45 2018-03-26T02:38:54  *** harrymm has joined #bitcoin-dev
 46 2018-03-26T02:39:14  *** Murch has quit IRC
 47 2018-03-26T02:40:12  <full-noder___> Going through the mastering bitcoin book. Chapter 3 indicates, for people interested in developing bitcoin software, you should be running your own node.
 48 2018-03-26T02:40:13  *** r251d has quit IRC
 49 2018-03-26T02:40:42  <Randolf> That's a good book.
 50 2018-03-26T02:41:28  <Randolf> You can also learn by getting involved in the development community, even if only watching:  https://www.github.com/bitcoin/
 51 2018-03-26T02:43:21  <full-noder___> Thought there might a work around for the "should be running your own node" part.
 52 2018-03-26T02:43:42  <full-noder___> Thanks Randolf!
 53 2018-03-26T02:43:44  <Randolf> Well, you could query Electrum or something like that.
 54 2018-03-26T02:44:00  <Randolf> You could also use TestNet instead.
 55 2018-03-26T02:44:49  *** r251d has joined #bitcoin-dev
 56 2018-03-26T02:45:27  <full-noder___> Ah okay. I'll look into that. Thanks a ton!
 57 2018-03-26T02:45:44  <Randolf> You're welcome.
 58 2018-03-26T02:46:01  <Randolf> You can also ask about getting into TestNet on the #bitcoin channel.
 59 2018-03-26T02:46:09  *** full-noder___ has quit IRC
 60 2018-03-26T02:53:06  *** moneyball has joined #bitcoin-dev
 61 2018-03-26T02:58:21  *** r251d has quit IRC
 62 2018-03-26T02:58:48  *** colatkinson has joined #bitcoin-dev
 63 2018-03-26T03:01:18  *** colatkinson has quit IRC
 64 2018-03-26T03:02:50  *** r251d has joined #bitcoin-dev
 65 2018-03-26T03:18:41  *** POJO has joined #bitcoin-dev
 66 2018-03-26T03:19:52  *** Samdney has quit IRC
 67 2018-03-26T03:22:30  *** moneyball has quit IRC
 68 2018-03-26T03:29:54  *** Randolf has quit IRC
 69 2018-03-26T03:29:54  *** r251d has quit IRC
 70 2018-03-26T03:29:54  *** adiabat has quit IRC
 71 2018-03-26T03:29:55  *** Randolf has joined #bitcoin-dev
 72 2018-03-26T03:30:41  *** adiabat has joined #bitcoin-dev
 73 2018-03-26T03:32:35  *** r251d has joined #bitcoin-dev
 74 2018-03-26T03:34:57  *** full-noder___ has joined #bitcoin-dev
 75 2018-03-26T03:40:51  *** r251d has quit IRC
 76 2018-03-26T03:41:05  *** colatkinson has joined #bitcoin-dev
 77 2018-03-26T03:41:27  <kallewoof> full-noder___: Regtest is great for trying things out. It's your own local blockchain.
 78 2018-03-26T03:45:28  *** r251d has joined #bitcoin-dev
 79 2018-03-26T03:54:06  *** O01eg has quit IRC
 80 2018-03-26T03:54:26  *** r251d has quit IRC
 81 2018-03-26T03:58:11  *** r251d has joined #bitcoin-dev
 82 2018-03-26T04:04:59  *** jtimon has quit IRC
 83 2018-03-26T04:06:21  *** r251d has quit IRC
 84 2018-03-26T04:13:40  *** O01eg has joined #bitcoin-dev
 85 2018-03-26T04:17:33  *** colatkinson has quit IRC
 86 2018-03-26T04:20:22  *** agricocb has quit IRC
 87 2018-03-26T04:38:23  *** full-noder___ has quit IRC
 88 2018-03-26T04:39:25  *** agricocb has joined #bitcoin-dev
 89 2018-03-26T04:44:40  *** POJO has quit IRC
 90 2018-03-26T04:58:34  *** fatalhalt has quit IRC
 91 2018-03-26T05:01:06  *** fatalhalt has joined #bitcoin-dev
 92 2018-03-26T05:06:31  *** colatkinson has joined #bitcoin-dev
 93 2018-03-26T05:09:59  *** r251d has joined #bitcoin-dev
 94 2018-03-26T05:25:21  *** r251d has quit IRC
 95 2018-03-26T05:38:03  *** r251d has joined #bitcoin-dev
 96 2018-03-26T05:47:58  *** dermoth has quit IRC
 97 2018-03-26T05:48:23  *** dermoth has joined #bitcoin-dev
 98 2018-03-26T05:51:28  *** r251d has quit IRC
 99 2018-03-26T06:02:15  *** Victorsueca has quit IRC
100 2018-03-26T06:03:36  *** Victorsueca has joined #bitcoin-dev
101 2018-03-26T06:25:55  *** r251d has joined #bitcoin-dev
102 2018-03-26T06:29:09  *** elichai2 has joined #bitcoin-dev
103 2018-03-26T06:33:29  *** jtimon has joined #bitcoin-dev
104 2018-03-26T06:50:00  *** nazarewk has joined #bitcoin-dev
105 2018-03-26T07:08:36  *** firemanxbr has joined #bitcoin-dev
106 2018-03-26T07:17:35  *** ongolaBoy has joined #bitcoin-dev
107 2018-03-26T07:27:31  *** r251d has quit IRC
108 2018-03-26T07:27:53  *** jungly has joined #bitcoin-dev
109 2018-03-26T07:27:59  *** r251d has joined #bitcoin-dev
110 2018-03-26T07:38:08  <FraJah> moinings
111 2018-03-26T07:41:05  *** nanotube has quit IRC
112 2018-03-26T07:46:51  *** elichai2 has left #bitcoin-dev
113 2018-03-26T07:55:27  *** jtimon has quit IRC
114 2018-03-26T07:59:58  *** nazarewk has quit IRC
115 2018-03-26T08:06:25  *** nazarewk has joined #bitcoin-dev
116 2018-03-26T08:09:55  *** one_zero has quit IRC
117 2018-03-26T08:11:13  *** nazarewk has quit IRC
118 2018-03-26T08:12:40  *** nazarewk has joined #bitcoin-dev
119 2018-03-26T08:14:07  *** colatkinson has quit IRC
120 2018-03-26T08:24:05  *** DTZUZO has quit IRC
121 2018-03-26T08:48:34  *** full-noder___ has joined #bitcoin-dev
122 2018-03-26T08:56:05  *** promag has joined #bitcoin-dev
123 2018-03-26T08:56:43  *** full-noder___ has quit IRC
124 2018-03-26T09:13:46  *** Thominus has quit IRC
125 2018-03-26T09:13:59  *** tombusby has quit IRC
126 2018-03-26T09:18:47  *** adadelta|txter has joined #bitcoin-dev
127 2018-03-26T09:32:59  *** nanotube has joined #bitcoin-dev
128 2018-03-26T09:36:54  *** promag has quit IRC
129 2018-03-26T09:42:53  *** promag has joined #bitcoin-dev
130 2018-03-26T09:47:13  *** Victorsueca has quit IRC
131 2018-03-26T09:48:21  *** Victorsueca has joined #bitcoin-dev
132 2018-03-26T09:48:29  *** promag has quit IRC
133 2018-03-26T10:13:51  *** justanotheruser has quit IRC
134 2018-03-26T10:44:07  *** moneyball has joined #bitcoin-dev
135 2018-03-26T11:04:09  *** codablock has joined #bitcoin-dev
136 2018-03-26T11:06:13  <codablock> Hello. I'm currently trying to figure out where in the Bitcoin code wallet transactions are being periodically re-broadcasted. I found multiple mentions in Github issues/pull-requests that state that this is being done, for example in https://github.com/bitcoin/bitcoin/pull/9290. I'm however unable to figure where/when this is happening. The only thing I found is the re-broadcasting on startup.
137 2018-03-26T11:08:53  *** promag has joined #bitcoin-dev
138 2018-03-26T11:10:05  *** POJO has joined #bitcoin-dev
139 2018-03-26T11:10:48  <codablock> I'm looking for this because I stumbled upon the problem of too-long-chain transactions being added to the wallet without being added to the mempool (issue #10004). I understand that this can be avoided with "-walletrejectlongchains=1", but this is not meant for non-test code...so it doesn't feel correct to use (and recommend) this.
140 2018-03-26T11:11:25  <codablock> And as I read multiple times in different places that wallet transactions are being re-broadcasted, I'd expect the problem to be "not that bad" as the re-broadcasting should try to re-add the TXs to the mempool...but that seems to never happen.
141 2018-03-26T11:13:03  *** moneyball has quit IRC
142 2018-03-26T11:22:57  *** Giszmo has quit IRC
143 2018-03-26T11:23:03  *** Chris_Stewart_5 has joined #bitcoin-dev
144 2018-03-26T11:27:48  *** DTZUZO has joined #bitcoin-dev
145 2018-03-26T11:29:07  *** promag has quit IRC
146 2018-03-26T11:33:26  *** alexgr has joined #bitcoin-dev
147 2018-03-26T11:34:51  *** POJO has quit IRC
148 2018-03-26T11:39:47  *** Giszmo has joined #bitcoin-dev
149 2018-03-26T11:53:57  *** marcoagner has joined #bitcoin-dev
150 2018-03-26T11:56:52  *** moneyball has joined #bitcoin-dev
151 2018-03-26T12:13:33  *** Thominus has joined #bitcoin-dev
152 2018-03-26T12:23:35  *** codablock has quit IRC
153 2018-03-26T12:38:26  *** Chris_Stewart_5 has quit IRC
154 2018-03-26T12:54:44  *** POJO has joined #bitcoin-dev
155 2018-03-26T13:13:15  *** moneyball has quit IRC
156 2018-03-26T13:24:22  *** ken2812221 has joined #bitcoin-dev
157 2018-03-26T13:25:37  *** tombusby has joined #bitcoin-dev
158 2018-03-26T13:27:01  *** tombusby has quit IRC
159 2018-03-26T13:27:22  *** tombusby has joined #bitcoin-dev
160 2018-03-26T13:28:53  *** tombusby has quit IRC
161 2018-03-26T13:32:07  *** tombusby has joined #bitcoin-dev
162 2018-03-26T13:33:35  *** tombusby has quit IRC
163 2018-03-26T13:33:40  *** promag has joined #bitcoin-dev
164 2018-03-26T13:33:48  *** tombusby has joined #bitcoin-dev
165 2018-03-26T13:40:51  *** damons has quit IRC
166 2018-03-26T13:42:57  *** mandric has joined #bitcoin-dev
167 2018-03-26T13:43:00  *** stoopkid has joined #bitcoin-dev
168 2018-03-26T13:44:30  *** moneyball has joined #bitcoin-dev
169 2018-03-26T13:47:52  *** damons has joined #bitcoin-dev
170 2018-03-26T14:00:43  *** meshcollider has quit IRC
171 2018-03-26T14:02:48  *** agricocb has quit IRC
172 2018-03-26T14:11:50  *** marcoagner has quit IRC
173 2018-03-26T14:19:18  *** Krellan has joined #bitcoin-dev
174 2018-03-26T14:25:02  *** Krellan_ has joined #bitcoin-dev
175 2018-03-26T14:26:24  *** Krellan has quit IRC
176 2018-03-26T14:35:55  *** nazarewk has quit IRC
177 2018-03-26T14:40:08  *** bugs_ has joined #bitcoin-dev
178 2018-03-26T15:05:03  *** codablock has joined #bitcoin-dev
179 2018-03-26T15:09:21  *** ongolaBoy has quit IRC
180 2018-03-26T15:13:32  *** mandric has quit IRC
181 2018-03-26T15:16:30  *** ongolaBoy has joined #bitcoin-dev
182 2018-03-26T15:17:58  *** Samdney has joined #bitcoin-dev
183 2018-03-26T15:19:56  *** agricocb has joined #bitcoin-dev
184 2018-03-26T15:21:29  *** agricocb has joined #bitcoin-dev
185 2018-03-26T15:23:49  *** mandric has joined #bitcoin-dev
186 2018-03-26T15:27:39  *** jtimon has joined #bitcoin-dev
187 2018-03-26T15:28:24  *** Murch has joined #bitcoin-dev
188 2018-03-26T15:39:27  *** promag has quit IRC
189 2018-03-26T15:42:00  *** Krellan_ has quit IRC
190 2018-03-26T15:46:41  *** Samdney has quit IRC
191 2018-03-26T15:52:09  *** markus-k has quit IRC
192 2018-03-26T15:54:12  *** markus-k has joined #bitcoin-dev
193 2018-03-26T16:01:04  *** Dizzle has joined #bitcoin-dev
194 2018-03-26T16:03:15  *** Samdney has joined #bitcoin-dev
195 2018-03-26T16:08:25  *** ongolaBoy has quit IRC
196 2018-03-26T16:10:06  *** Samdney has quit IRC
197 2018-03-26T16:11:15  *** one_zero has joined #bitcoin-dev
198 2018-03-26T16:14:05  *** ongolaBoy has joined #bitcoin-dev
199 2018-03-26T16:14:27  *** mandric has quit IRC
200 2018-03-26T16:16:00  *** AndBobsYourUncle has quit IRC
201 2018-03-26T16:18:11  *** BCBot has quit IRC
202 2018-03-26T16:24:41  *** moneyball has quit IRC
203 2018-03-26T16:30:57  *** BCBot has joined #bitcoin-dev
204 2018-03-26T16:34:34  *** promag has joined #bitcoin-dev
205 2018-03-26T16:39:21  *** promag has quit IRC
206 2018-03-26T16:42:57  *** ongolaBoy has quit IRC
207 2018-03-26T16:50:32  *** moneyball has joined #bitcoin-dev
208 2018-03-26T17:01:08  *** echonaut has quit IRC
209 2018-03-26T17:04:51  *** ProfMac has joined #bitcoin-dev
210 2018-03-26T17:10:47  *** promag has joined #bitcoin-dev
211 2018-03-26T17:14:33  <ProfMac> Is there a procedure to take the hex value returned by getrawtransaction and turn it into a CBlockTemplate?
212 2018-03-26T17:15:13  *** quitobro has joined #bitcoin-dev
213 2018-03-26T17:16:04  <quitobro> hello people, does anyone know if it’s possible to run 2 bitcoin nodes - one mainnet, one on testnet?  was thinking if i run one in a virtual machine, and one on my main laptop OS, that i could pull it off…
214 2018-03-26T17:16:29  <quitobro> i want to develop/test a bitcoin implementation + Lightning implementation locally, but have mainnet activities so need to run a mainnet node
215 2018-03-26T17:18:26  *** Victorsueca has quit IRC
216 2018-03-26T17:19:36  *** Victorsueca has joined #bitcoin-dev
217 2018-03-26T17:21:21  <ProfMac> I run two nodes in the same VM.  Just use the -datadir= command line parameter, and set the ports to different values in the bitcoin.conf files in each directory.  In my case, I also control a few more things so that my 2 nodes are quarantined.
218 2018-03-26T17:26:05  <quitobro> ProfMac: cheers :)
219 2018-03-26T17:27:52  *** echonaut has joined #bitcoin-dev
220 2018-03-26T17:32:16  *** mandric has joined #bitcoin-dev
221 2018-03-26T17:46:13  *** Randolf has quit IRC
222 2018-03-26T17:48:03  *** moneyball has quit IRC
223 2018-03-26T17:49:21  *** epoch314 has joined #bitcoin-dev
224 2018-03-26T17:53:49  *** moneyball has joined #bitcoin-dev
225 2018-03-26T17:55:50  *** ongolaBoy has joined #bitcoin-dev
226 2018-03-26T18:01:03  *** promag has quit IRC
227 2018-03-26T18:05:25  *** codablock has quit IRC
228 2018-03-26T18:09:25  <quitobro> ProfMac: so you just start the two processes by pointing them to different `data_dir` locations?
229 2018-03-26T18:09:31  <quitobro> and maintain separate bitcoin.conf files for each?
230 2018-03-26T18:11:46  <arubi> you don't need different datadirs since the testnet files will be in a ./testnet subdir of the datadir.  it helps to maintain two bitcoin.conf files though because you'd probably want more adventurous settings for testnet
231 2018-03-26T18:12:10  *** adadelta|txter has quit IRC
232 2018-03-26T18:12:18  *** colatkinson has joined #bitcoin-dev
233 2018-03-26T18:19:48  *** epoch314 has quit IRC
234 2018-03-26T18:20:17  *** mandric has quit IRC
235 2018-03-26T18:24:06  *** mandric has joined #bitcoin-dev
236 2018-03-26T18:32:06  *** epoch314 has joined #bitcoin-dev
237 2018-03-26T18:35:40  *** epoch314 has quit IRC
238 2018-03-26T18:37:52  *** promag has joined #bitcoin-dev
239 2018-03-26T18:41:50  *** Dizzle has quit IRC
240 2018-03-26T18:42:57  *** promag has quit IRC
241 2018-03-26T18:44:12  *** fullstep has joined #bitcoin-dev
242 2018-03-26T18:46:24  <fullstep> Is it safe to assume that private keys encoded as WIF strings will always be either 51 or 52 characters long, depending on whether it is compressed or not?
243 2018-03-26T18:50:53  *** Victorsueca has quit IRC
244 2018-03-26T18:52:06  *** Victorsueca has joined #bitcoin-dev
245 2018-03-26T18:58:10  <arubi> if the version byte is not zero then it'll have constant length
246 2018-03-26T18:59:44  <arubi> I think..  now I'm doubting myself
247 2018-03-26T19:10:30  *** colatkinson has quit IRC
248 2018-03-26T19:14:46  *** DTZUZO has quit IRC
249 2018-03-26T19:16:53  <fullstep> As far as I know a private key in WIF format doesn't have a version byte. Only a network byte (test or prod) and a compression flag( zero or 1).
250 2018-03-26T19:18:14  <fullstep> It seems to be the presence of the compresion flag, which is optional, that changes the length of the WIF string.
251 2018-03-26T19:18:18  <arubi> that's what I mean by version byte - it being testnet or mainnet.  both aren't 0x00, but if it were then you could get different length
252 2018-03-26T19:20:10  <arubi> I'm almost positive that the byte not being 0x00 makes the base58 encoding be constant length.  I'm trying to find a counter example but can't
253 2018-03-26T19:23:07  <ProfMac> quitobro,  "bitcoin -datadir=$HOME/.bitcoin-A" and "bitcoin -datadir=$HOME/.bitcoin-1"
254 2018-03-26T19:27:51  <ProfMac> The two directories have different copies of bitcoin.conf, they may have, e.g. port=7333, rpcport=7332 in A, and port=8333, rpcport=8332 in 1.  You will need to have something like -connect=localhost:8333 on one command line.
255 2018-03-26T19:31:41  <arubi> I find it's better to just rpcbind them to different localhost addresses.  ie mainnet on 127.0.0.1 and testnet on 127.1.0.1 .  this way you can run multiple nodes of the same network easily (I run 4 regtest nodes for example)
256 2018-03-26T19:31:59  <arubi> but to each their own :)
257 2018-03-26T19:33:31  *** meshcollider has joined #bitcoin-dev
258 2018-03-26T19:33:46  <arubi> it's less of an issue when they're different networks since by design for testnet it'll be 18333 and 18332, but if you run multiple on the same net then it matters
259 2018-03-26T19:33:48  *** realz has joined #bitcoin-dev
260 2018-03-26T19:33:51  *** realzies has quit IRC
261 2018-03-26T19:35:20  <ProfMac> I'm running IPv6 when possible, and I thought I had trouble using the same ports with different addresses running in the same VM.
262 2018-03-26T19:35:27  <quitobro> arubi: so when you run testnet nodes, do you specify both `—tesnet` as well as `—conf=/path/to/testnet/config.cfg`?
263 2018-03-26T19:35:40  <arubi> I just specify testnet=1 in the .conf itself
264 2018-03-26T19:35:52  <quitobro> and point tesetnet processes to the testnet conf file?
265 2018-03-26T19:35:56  <ProfMac> And again, I'm answering a slightly different question, of running two otherwise identical nodes, not testnet & regularnet.
266 2018-03-26T19:36:12  <quitobro> ProfMac: roger that
267 2018-03-26T19:36:20  <arubi> yes, I have testnet-cli, mainnet-cli, regtest-cli..  all point to .sh scripts that have the -conf in them
268 2018-03-26T19:36:45  <quitobro> arubi: and a `testnetd` to start the daemon or something?
269 2018-03-26T19:36:52  <arubi> exactly
270 2018-03-26T19:37:00  <arubi> testnetd also has the -conf
271 2018-03-26T19:37:15  <arubi> testnet-tx has a -testnet in it since it doesn't have a -conf flag
272 2018-03-26T19:37:53  *** promag has joined #bitcoin-dev
273 2018-03-26T19:38:59  *** moneyball has quit IRC
274 2018-03-26T19:39:08  <arubi> and a final "$@" in each of the .sh's so I can pass arguments on the command line
275 2018-03-26T19:41:00  <ProfMac> I also ended up putting ~/.bitcoin/<portnumber> as a family of subdirectories.
276 2018-03-26T19:41:28  <arubi> I just dump them all in ~/.bitcoin/ , testnet.conf, mainnet.conf... etc :)
277 2018-03-26T19:42:24  *** moneyball has joined #bitcoin-dev
278 2018-03-26T19:42:25  *** promag has quit IRC
279 2018-03-26T19:42:32  <ProfMac> I am usually running a couple of instances in a quarantine-net, so I keep the directories separate.
280 2018-03-26T19:43:40  <ProfMac> lol.  "He's not mining with a full blockchain."
281 2018-03-26T19:43:58  <arubi> never needed the full chain anyway :P
282 2018-03-26T19:44:18  <arubi> but there are pools who don't validate.  sad
283 2018-03-26T19:44:39  <ProfMac> I ran a bunch of statistics on the 1st 10,008 blocks.
284 2018-03-26T19:45:31  <arubi> anything interesting?
285 2018-03-26T19:45:58  *** colatkinson has joined #bitcoin-dev
286 2018-03-26T19:46:11  *** promag has joined #bitcoin-dev
287 2018-03-26T19:46:20  <arubi> well I guess it's all interesting, but anything out of the ordinary?
288 2018-03-26T19:47:30  <ProfMac>  Yep.  The difficulty was pegged at 1.0 even though the times were not dead on.  I was plotting MedianPrevTime, and there is an Interval (what a block of 2016 is actually called in the code) where the hashrate differed.  There are 5 or 6 places where hashing stopped for 6 hours to a day or so.
289 2018-03-26T19:47:57  <ProfMac> And interesting to me, it fit almost exactly to a Poisson distribution.
290 2018-03-26T19:48:14  <arubi> I guess that means that nobody was gaming it then?
291 2018-03-26T19:48:33  <ProfMac> It had the "feel" of authentic lab data.
292 2018-03-26T19:49:07  <arubi> but wouldn't you expect a poisson distribution even now if there are no games?
293 2018-03-26T19:49:52  <ProfMac> No, a superposition of Poissons, for each hash rate.  Beyond my pay grade to interpret.
294 2018-03-26T19:50:31  <arubi> hm
295 2018-03-26T19:50:59  <ProfMac> Actually, "truncated Poissons" since the slow miners don't get to express the long running blocks.
296 2018-03-26T19:51:38  <arubi> what do you mean?
297 2018-03-26T19:52:02  <arubi> diff hasn't changed in those 10k blocks, so if you had 0.001 of the hashrate, you got 0.001 of the blocks right?
298 2018-03-26T19:52:38  <arubi> (I'm assuming no new hashrate entered so your share didn't change in that time)
299 2018-03-26T19:52:52  <ProfMac> if there are 2 miners, running at hashrate 1MH/s and 10 MH/s, you only see the 1st block found, not both blocks found.
300 2018-03-26T19:53:20  <ProfMac> But it is a race that throws away the longer blocks from the sample.
301 2018-03-26T19:53:33  <arubi> but the 1mh/s miner will get 1/10 of blocks, it's not a race
302 2018-03-26T19:54:09  <arubi> a race means that the faster miner would win every time.  hashing means you'll just get your share over a long enough timeline
303 2018-03-26T19:54:19  <ProfMac> https://plus.google.com/u/0/photos/115426745065196075335/album/6519521612516431713/6519521612265200578?authkey=CK2wi7Gd3uaRwwE
304 2018-03-26T19:56:48  <arubi> I'm confused by these graphs, but that's just me being stupid :)
305 2018-03-26T19:57:01  <ProfMac> You will get your share, but the distribution is not a nice poisson.  That shows up very soon after the 10,008th block.
306 2018-03-26T19:57:58  <ProfMac> The top-right one is the most straightforward.  It is the elapsed time from MedianPrevTime to the current block time.
307 2018-03-26T19:58:50  <arubi> did you check for changes in the software's behavior for including the blocktime in the header?
308 2018-03-26T19:59:03  <arubi> I mean, I guess it didn't change much in 10k blocks, but maybe it was behaving differently?
309 2018-03-26T19:59:56  <ProfMac> I did not.  I assume I could look at the git log and surmise which version was running.  But I followed a different path for my project.
310 2018-03-26T20:00:25  *** adiabat has quit IRC
311 2018-03-26T20:00:28  <ProfMac> That blue section just before block 2,000 jumps out at me.
312 2018-03-26T20:00:54  <arubi> worth to look at the first 70 days of logs I guess
313 2018-03-26T20:01:24  <ProfMac> Oh, and the actual blocktime was closer to 720 seconds than 600.
314 2018-03-26T20:01:42  <arubi> yea that probably the reason diff stayed at 1
315 2018-03-26T20:01:53  <ProfMac> Well, I'm off to an errand.
316 2018-03-26T20:01:55  <arubi> o/
317 2018-03-26T20:02:46  *** bugs_ has quit IRC
318 2018-03-26T20:03:44  <ProfMac> ah, yeah.
319 2018-03-26T20:03:48  *** ProfMac is now known as ProfMac_
320 2018-03-26T20:03:53  *** Randolf has joined #bitcoin-dev
321 2018-03-26T20:05:21  *** adiabat has joined #bitcoin-dev
322 2018-03-26T20:08:33  *** dbackeus has joined #bitcoin-dev
323 2018-03-26T20:12:05  <dbackeus> I'm learning the bitcoin procol by implementing it from scratch in Crystal. I have version acking handshake working but somehow when I send "getblocks" or "getheaders" the remote just stops sending any data, any ideas for what might cause it or how to troubleshoot?
324 2018-03-26T20:13:42  <arubi> dbackeus, you need to send a specific message first before any other communication with a peer
325 2018-03-26T20:13:52  <arubi> I'm sure there's a bip..  I forget what it was
326 2018-03-26T20:14:08  <arubi> dbackeus, oh, https://en.bitcoin.it/wiki/Protocol_documentation#version
327 2018-03-26T20:14:42  *** ongolaBoy has quit IRC
328 2018-03-26T20:14:50  <dbackeus> "I have version acking handshake working" - that is I send version and get verack back, then remote sends me version and I send verack back
329 2018-03-26T20:14:59  <dbackeus> so that's all good as far as I know
330 2018-03-26T20:15:04  <arubi> what's the version you're sending?
331 2018-03-26T20:15:20  <dbackeus> then I get a bunch of other messages from remote and he starts streaming inv messages, however he just stops when I send "getblocks" or "getheaders"
332 2018-03-26T20:15:37  <quitobro> is there a way to make the `bitcoind` command fail loudly if you pass it a conf=/path/to/file/that/does/not/exist/ ?
333 2018-03-26T20:15:38  <dbackeus> I also have "ping" vs "pong" implemented so that seems to work ok
334 2018-03-26T20:16:11  <quitobro> not super clear what behavior is happening currently; i just get a message about needing to restart w/ `-reindex`...
335 2018-03-26T20:16:30  <arubi> quitobro, `if [[ ! -r /path/to/bitcoin.conf ]]; then echo 'NOOOO!!'; fi` :P ?
336 2018-03-26T20:17:04  <arubi> dbackeus, so, which version are you sending to the peer?
337 2018-03-26T20:18:22  <dbackeus> arubi I'm sending 70015
338 2018-03-26T20:19:02  <arubi> oh, that looks fine.  I don't know.
339 2018-03-26T20:19:53  <dbackeus> could the getheaders/getblocks message have content that leaves the peer unable to respond causing it to just ignore?
340 2018-03-26T20:20:41  <dbackeus> I don't see why that would stop it from keep up streaming inv messages though...
341 2018-03-26T20:21:02  <arubi> not sure.
342 2018-03-26T20:21:21  <arubi> afk
343 2018-03-26T20:36:14  *** promag has quit IRC
344 2018-03-26T20:45:18  *** arubi has quit IRC
345 2018-03-26T20:45:44  *** colatkinson has quit IRC
346 2018-03-26T20:50:51  *** Randolf has quit IRC
347 2018-03-26T20:51:51  *** Randolf has joined #bitcoin-dev
348 2018-03-26T21:01:39  *** arubi has joined #bitcoin-dev
349 2018-03-26T21:12:41  *** ProfMac_ is now known as ProfMac
350 2018-03-26T21:17:29  *** quitobro has quit IRC
351 2018-03-26T21:20:43  *** Krellan has joined #bitcoin-dev
352 2018-03-26T21:31:37  *** Dizzle has joined #bitcoin-dev
353 2018-03-26T21:38:19  *** firemanxbr has quit IRC
354 2018-03-26T21:42:22  *** agricocb has quit IRC
355 2018-03-26T21:44:45  *** dbackeus has quit IRC
356 2018-03-26T21:47:56  *** colatkinson has joined #bitcoin-dev
357 2018-03-26T21:50:56  *** colatkinson has quit IRC
358 2018-03-26T21:51:19  *** colatkinson has joined #bitcoin-dev
359 2018-03-26T22:02:42  *** DTZUZO has joined #bitcoin-dev
360 2018-03-26T22:05:11  *** mandric has quit IRC
361 2018-03-26T22:05:29  *** Murch has quit IRC
362 2018-03-26T22:13:21  *** colatkinson has quit IRC
363 2018-03-26T22:14:06  *** moneyball has quit IRC
364 2018-03-26T22:17:43  *** quitobro has joined #bitcoin-dev
365 2018-03-26T22:22:09  *** agricocb has joined #bitcoin-dev
366 2018-03-26T22:32:30  *** rafalcpp has quit IRC
367 2018-03-26T22:33:17  *** rafalcpp has joined #bitcoin-dev
368 2018-03-26T22:33:51  *** POJO has quit IRC
369 2018-03-26T23:05:30  *** sword_smith has joined #bitcoin-dev
370 2018-03-26T23:05:56  <sword_smith> I don't get why the network byte of P2SH addresses can be 0x05 and the P2SH addresses can start with '3' when the base58-encoding of 0x05 is '6'. What am I missing?
371 2018-03-26T23:08:05  *** Dizzle has quit IRC
372 2018-03-26T23:18:49  *** Randolf has quit IRC
373 2018-03-26T23:25:34  *** Eraz0r has joined #bitcoin-dev
374 2018-03-26T23:39:13  *** Murch has joined #bitcoin-dev
375 2018-03-26T23:39:23  *** Randolf has joined #bitcoin-dev
376 2018-03-26T23:44:25  *** promag has joined #bitcoin-dev
377 2018-03-26T23:48:49  *** promag has quit IRC
378 2018-03-26T23:50:30  *** Murch has quit IRC
379 2018-03-26T23:52:09  *** alexgr has quit IRC
380 2018-03-26T23:56:21  *** moneyball has joined #bitcoin-dev
381 2018-03-26T23:59:53  *** Murch has joined #bitcoin-dev