1 2015-12-01T00:03:20  *** giel__ has joined #bitcoin-dev
   2 2015-12-01T00:04:30  *** gielbier has quit IRC
   3 2015-12-01T00:05:35  *** brson has joined #bitcoin-dev
   4 2015-12-01T00:17:08  *** giel__ has quit IRC
   5 2015-12-01T00:17:15  *** zookolaptop has joined #bitcoin-dev
   6 2015-12-01T00:24:50  *** agricocb has quit IRC
   7 2015-12-01T00:27:47  *** cocoBTC has quit IRC
   8 2015-12-01T00:29:46  *** Yoghur114 has quit IRC
   9 2015-12-01T00:33:12  *** null_radix has joined #bitcoin-dev
  10 2015-12-01T00:33:55  *** CodesInChaos_ has quit IRC
  11 2015-12-01T00:36:19  *** t7 has quit IRC
  12 2015-12-01T00:40:11  *** agricocb has joined #bitcoin-dev
  13 2015-12-01T00:41:16  *** rnvk has quit IRC
  14 2015-12-01T00:43:15  *** AndyDD has joined #bitcoin-dev
  15 2015-12-01T00:44:04  *** Prattler has quit IRC
  16 2015-12-01T00:45:15  *** Prattler has joined #bitcoin-dev
  17 2015-12-01T00:46:13  *** gielbier has joined #bitcoin-dev
  18 2015-12-01T00:46:31  *** gielbier has joined #bitcoin-dev
  19 2015-12-01T00:55:39  *** Kazzy has quit IRC
  20 2015-12-01T00:56:08  *** justice has quit IRC
  21 2015-12-01T00:56:24  *** h3xc0d3r has joined #bitcoin-dev
  22 2015-12-01T00:56:27  *** Emzy has quit IRC
  23 2015-12-01T00:57:16  *** calibre720 has joined #bitcoin-dev
  24 2015-12-01T00:57:56  *** Kazzy has joined #bitcoin-dev
  25 2015-12-01T00:58:42  *** justice has joined #bitcoin-dev
  26 2015-12-01T00:58:58  *** Fred_ has joined #bitcoin-dev
  27 2015-12-01T00:59:21  *** Fred_ is now known as Guest39022
  28 2015-12-01T01:02:46  *** Guest39022 has quit IRC
  29 2015-12-01T01:09:03  *** justice has quit IRC
  30 2015-12-01T01:11:59  *** TheAdversary has quit IRC
  31 2015-12-01T01:15:43  *** calibre720 has quit IRC
  32 2015-12-01T01:17:38  *** DougieBot5000 has joined #bitcoin-dev
  33 2015-12-01T01:24:34  *** Ylbam has quit IRC
  34 2015-12-01T01:26:42  *** one_zero has joined #bitcoin-dev
  35 2015-12-01T01:27:22  *** lnostdal has quit IRC
  36 2015-12-01T01:29:51  *** CheckDavid has quit IRC
  37 2015-12-01T01:31:27  *** calibre720 has joined #bitcoin-dev
  38 2015-12-01T01:32:20  *** GGuyZ_ has joined #bitcoin-dev
  39 2015-12-01T01:32:21  *** GGuyZ has quit IRC
  40 2015-12-01T01:32:21  *** GGuyZ_ is now known as GGuyZ
  41 2015-12-01T01:36:35  *** calibre720_ has joined #bitcoin-dev
  42 2015-12-01T01:36:52  *** calibre720 has quit IRC
  43 2015-12-01T01:39:50  *** lnostdal has joined #bitcoin-dev
  44 2015-12-01T01:40:50  *** nivah has joined #bitcoin-dev
  45 2015-12-01T01:50:28  *** AndyDD has quit IRC
  46 2015-12-01T01:50:34  *** jrick has quit IRC
  47 2015-12-01T01:51:11  *** jrick has joined #bitcoin-dev
  48 2015-12-01T01:51:36  *** LeMiner has quit IRC
  49 2015-12-01T01:52:28  *** LeMiner has joined #bitcoin-dev
  50 2015-12-01T01:54:27  *** nivah has quit IRC
  51 2015-12-01T01:55:13  *** frank1e_ has joined #bitcoin-dev
  52 2015-12-01T01:57:25  *** nivah has joined #bitcoin-dev
  53 2015-12-01T01:57:55  *** antizionist__ has quit IRC
  54 2015-12-01T01:58:32  *** frank1e has quit IRC
  55 2015-12-01T02:02:35  *** frank1e_ has quit IRC
  56 2015-12-01T02:02:55  *** frank1e has joined #bitcoin-dev
  57 2015-12-01T02:02:57  *** brson has quit IRC
  58 2015-12-01T02:04:41  *** bendavenport has quit IRC
  59 2015-12-01T02:05:55  *** the`doctor has quit IRC
  60 2015-12-01T02:07:19  *** cyphase_ has joined #bitcoin-dev
  61 2015-12-01T02:09:12  *** calibre720_ has quit IRC
  62 2015-12-01T02:10:01  *** hashtag_ has joined #bitcoin-dev
  63 2015-12-01T02:10:59  *** roxtrongo has joined #bitcoin-dev
  64 2015-12-01T02:11:06  *** Lyth0s has joined #bitcoin-dev
  65 2015-12-01T02:12:24  *** hashtag has quit IRC
  66 2015-12-01T02:15:27  *** h3xc0d3r has quit IRC
  67 2015-12-01T02:17:01  *** frank1e has quit IRC
  68 2015-12-01T02:17:17  *** frank1e has joined #bitcoin-dev
  69 2015-12-01T02:18:14  *** gielbier has quit IRC
  70 2015-12-01T02:18:20  *** Del88 has joined #bitcoin-dev
  71 2015-12-01T02:20:44  *** Del88 has left #bitcoin-dev
  72 2015-12-01T02:22:50  *** calibre720 has joined #bitcoin-dev
  73 2015-12-01T02:27:38  *** Newyorkadam has joined #bitcoin-dev
  74 2015-12-01T02:29:18  *** Klumben has quit IRC
  75 2015-12-01T02:29:19  *** zeiris_ has quit IRC
  76 2015-12-01T02:29:33  *** alex____ has quit IRC
  77 2015-12-01T02:29:44  *** zookolaptop has quit IRC
  78 2015-12-01T02:35:19  *** zeiris has joined #bitcoin-dev
  79 2015-12-01T02:35:59  *** calibre720 has quit IRC
  80 2015-12-01T02:44:05  *** GGuyZ has quit IRC
  81 2015-12-01T02:44:25  *** GGuyZ has joined #bitcoin-dev
  82 2015-12-01T02:45:53  *** hashtag has joined #bitcoin-dev
  83 2015-12-01T02:46:12  *** hashtag_ has quit IRC
  84 2015-12-01T02:49:50  *** AaronvanW has quit IRC
  85 2015-12-01T02:54:32  *** roconnor has joined #bitcoin-dev
  86 2015-12-01T02:55:46  *** Ahmed90 has quit IRC
  87 2015-12-01T03:01:31  *** Newyorkadam has quit IRC
  88 2015-12-01T03:03:32  *** alex__ has joined #bitcoin-dev
  89 2015-12-01T03:07:52  *** alex__ has quit IRC
  90 2015-12-01T03:09:19  *** kadoban has quit IRC
  91 2015-12-01T03:16:59  *** whocantell has joined #bitcoin-dev
  92 2015-12-01T03:17:56  *** Tanktonamore has joined #bitcoin-dev
  93 2015-12-01T03:18:07  *** rnvk has joined #bitcoin-dev
  94 2015-12-01T03:22:49  *** afk11 has joined #bitcoin-dev
  95 2015-12-01T03:24:02  *** cyphase_ has quit IRC
  96 2015-12-01T03:24:04  *** Guest78087 has joined #bitcoin-dev
  97 2015-12-01T03:28:06  *** Subo1977 has joined #bitcoin-dev
  98 2015-12-01T03:28:09  *** whocantell has quit IRC
  99 2015-12-01T03:28:54  *** Delta_ has quit IRC
 100 2015-12-01T03:29:25  *** Guest78087 has quit IRC
 101 2015-12-01T03:35:10  *** kadoban has joined #bitcoin-dev
 102 2015-12-01T03:36:53  *** Genitrus_ has joined #bitcoin-dev
 103 2015-12-01T03:36:57  *** happyfr0gg has joined #bitcoin-dev
 104 2015-12-01T03:37:13  <Genitrus_> does anyone here know how to do bitcoin JSON RPC commands with python?
 105 2015-12-01T03:37:56  *** frank1e has quit IRC
 106 2015-12-01T03:40:09  *** happyfr0gg has quit IRC
 107 2015-12-01T03:43:08  <moa> Genitrus_: https://github.com/vbuterin/pybitcointools might be helpful
 108 2015-12-01T03:43:12  <Genitrus_> when i do my GET request (for 'getblock' command) i get this: http://pastie.org/private/ghqvfamt789wmdr5y8vyw
 109 2015-12-01T03:43:44  *** alex__ has joined #bitcoin-dev
 110 2015-12-01T03:44:13  <Genitrus_> moa thanks, but actually, i guess the language doesn't matter :) does anyone here use the JSON RPC commands? has anyone build requests to a remote JSON RPC bitcoin server?
 111 2015-12-01T03:44:29  <Genitrus_> moa i do appreciate that tho... i looked it over real quick... doesn't look like it'll help me with making RPC calls
 112 2015-12-01T03:44:34  *** phoenix53 has quit IRC
 113 2015-12-01T03:44:44  <Genitrus_> <--- using a full node
 114 2015-12-01T03:48:04  *** alex__ has quit IRC
 115 2015-12-01T03:48:09  <Genitrus_> where is sipa when you need to tip him ;(
 116 2015-12-01T03:49:16  *** splix has joined #bitcoin-dev
 117 2015-12-01T03:50:57  *** jgarzik_ has quit IRC
 118 2015-12-01T03:51:06  *** kadoban has quit IRC
 119 2015-12-01T03:51:46  <phantomcircuit> Genitrus_, https://github.com/jgarzik/python-bitcoinrpc
 120 2015-12-01T03:53:01  <Genitrus_> phantomcircuit: i tried :[
 121 2015-12-01T03:53:06  <Genitrus_> here's my output when using that........
 122 2015-12-01T03:54:17  *** happyfr0gg has joined #bitcoin-dev
 123 2015-12-01T03:55:59  <phantomcircuit> Genitrus_, bitcoind by default only listens for connections from localhost
 124 2015-12-01T03:56:18  <Genitrus_> http://pastie.org/private/eriq5z64pav4kloodgzeq
 125 2015-12-01T03:56:31  <Genitrus_> phantomcircuit: ah yes, let me post the bitcoin conf , too
 126 2015-12-01T03:57:50  *** guest234234 has joined #bitcoin-dev
 127 2015-12-01T03:59:10  <Genitrus_> phantomcircuit: this includes the conf:
 128 2015-12-01T03:59:10  <phantomcircuit> Genitrus_, just dont post the rpc password :)
 129 2015-12-01T03:59:12  <Genitrus_> http://pastie.org/private/rsqudwhue8qnvumjol6gg
 130 2015-12-01T03:59:39  <Genitrus_> thanks phantomcircuit :) i appreciate your input :D
 131 2015-12-01T04:00:30  <phantomcircuit> Genitrus_, you changed the rpcport
 132 2015-12-01T04:01:51  *** dave4925_x has quit IRC
 133 2015-12-01T04:02:10  *** Lyth0s_ has joined #bitcoin-dev
 134 2015-12-01T04:03:10  <Genitrus_> phantomcircuit: should i remove that line?
 135 2015-12-01T04:03:49  <Genitrus_> phantomcircuit: i am specifying the port in the connection URL, though
 136 2015-12-01T04:04:23  *** dave4925 has joined #bitcoin-dev
 137 2015-12-01T04:05:06  *** Lyth0s has quit IRC
 138 2015-12-01T04:05:28  <afk11> Genitrus_: the error thrown in your first paste looks like it's trying 8333
 139 2015-12-01T04:05:49  <Genitrus_> yup, that's what i specified rpcport=8333 (in the bitcoin conf)
 140 2015-12-01T04:09:47  *** codice has quit IRC
 141 2015-12-01T04:10:09  <tulip> 8333 is the p2p port, you can't bind the rpc port there as well.
 142 2015-12-01T04:11:25  *** codice has joined #bitcoin-dev
 143 2015-12-01T04:11:51  <tulip> either way your configuration, binding the RPC interface to the world is pretty inadvisable, at a minimum all of the traffic is plaintext.
 144 2015-12-01T04:12:00  *** afk11 has quit IRC
 145 2015-12-01T04:12:58  <Genitrus_> ok cool, it turned out to be a server error or something
 146 2015-12-01T04:13:05  <Genitrus_> port 8334 works
 147 2015-12-01T04:13:14  <Genitrus_> oooh i see tulip
 148 2015-12-01T04:13:45  <Genitrus_> tulip, does RPC password matter if like... there will never be any coins here? :D
 149 2015-12-01T04:15:58  <tulip> then you want `disablewallet=1` in your configuration as well. it probably doesn't matter beyond nuisance stuff like denial of service, but all the same making stuff world exposed which isn't designed to be is inadvisable.
 150 2015-12-01T04:18:32  <Genitrus_> thanks!
 151 2015-12-01T04:21:26  *** the`doctor has joined #bitcoin-dev
 152 2015-12-01T04:23:11  *** won9 has quit IRC
 153 2015-12-01T04:26:55  *** p15 has joined #bitcoin-dev
 154 2015-12-01T04:29:02  *** Dyanisus has quit IRC
 155 2015-12-01T04:35:27  *** patcon has quit IRC
 156 2015-12-01T04:35:39  *** c-cex-yuriy has quit IRC
 157 2015-12-01T04:42:37  *** jgarzik has joined #bitcoin-dev
 158 2015-12-01T04:42:38  *** jgarzik has quit IRC
 159 2015-12-01T04:42:38  *** jgarzik has joined #bitcoin-dev
 160 2015-12-01T04:44:15  *** atgreen_ has joined #bitcoin-dev
 161 2015-12-01T04:45:40  *** mrkent has joined #bitcoin-dev
 162 2015-12-01T04:49:25  *** alex__ has joined #bitcoin-dev
 163 2015-12-01T04:50:58  *** mrkent has quit IRC
 164 2015-12-01T04:53:29  *** alex__ has quit IRC
 165 2015-12-01T04:54:28  *** Lightsword has quit IRC
 166 2015-12-01T04:54:54  *** nessence has joined #bitcoin-dev
 167 2015-12-01T04:58:01  *** Lightsword has joined #bitcoin-dev
 168 2015-12-01T05:02:11  *** Lyth0s has joined #bitcoin-dev
 169 2015-12-01T05:04:22  *** the`doctor has quit IRC
 170 2015-12-01T05:05:15  *** won9 has joined #bitcoin-dev
 171 2015-12-01T05:05:18  *** atgreen_ has quit IRC
 172 2015-12-01T05:05:19  *** Lyth0s_ has quit IRC
 173 2015-12-01T05:07:39  *** Klumben has joined #bitcoin-dev
 174 2015-12-01T05:08:32  <Luke-Jr> ugh, why does bitcoin.org need to be jekyll/ruby mess that's impossible to build? :/
 175 2015-12-01T05:10:34  *** sparetire_ has quit IRC
 176 2015-12-01T05:12:19  *** GGuyZ has quit IRC
 177 2015-12-01T05:12:27  *** GGuyZ has joined #bitcoin-dev
 178 2015-12-01T05:13:52  *** GGuyZ has quit IRC
 179 2015-12-01T05:13:54  *** Giszmo has quit IRC
 180 2015-12-01T05:14:40  *** GGuyZ has joined #bitcoin-dev
 181 2015-12-01T05:15:26  *** saracen has quit IRC
 182 2015-12-01T05:25:34  *** splix has quit IRC
 183 2015-12-01T05:33:20  *** GGuyZ_ has joined #bitcoin-dev
 184 2015-12-01T05:33:40  *** GGuyZ has quit IRC
 185 2015-12-01T05:33:47  *** GGuyZ has joined #bitcoin-dev
 186 2015-12-01T05:37:06  *** alex__ has joined #bitcoin-dev
 187 2015-12-01T05:37:16  *** codice has quit IRC
 188 2015-12-01T05:39:04  *** splix has joined #bitcoin-dev
 189 2015-12-01T05:39:12  *** hsmiths has quit IRC
 190 2015-12-01T05:39:21  *** hsmiths has joined #bitcoin-dev
 191 2015-12-01T05:40:04  *** hsmiths has quit IRC
 192 2015-12-01T05:41:42  *** alex__ has quit IRC
 193 2015-12-01T05:44:35  *** matsjj has joined #bitcoin-dev
 194 2015-12-01T05:45:10  *** ThomasV has joined #bitcoin-dev
 195 2015-12-01T05:45:39  <Genitrus_> Luke-Jr: not sure why people even like ruby... if you love a language because it's an enjoyable syntax, do python ... don't put your fingers through hell typing a ton of pipes and extra typing "end" statements :(
 196 2015-12-01T05:45:41  *** hsmiths has joined #bitcoin-dev
 197 2015-12-01T05:46:06  <Luke-Jr> Genitrus_: I remember the days I could run my system without Ruby :/
 198 2015-12-01T05:46:53  <Genitrus_> me too. it was a beautiful time. now i need ruby when i want to be lazy and use "git up" :(
 199 2015-12-01T05:47:16  <Luke-Jr> O.o
 200 2015-12-01T05:47:30  <Luke-Jr> gitian and bitcoin.org are literally the only things I use Ruby for
 201 2015-12-01T05:52:47  *** chmod755 has joined #bitcoin-dev
 202 2015-12-01T05:58:10  *** agricocb has quit IRC
 203 2015-12-01T06:02:08  *** GGuyZ has quit IRC
 204 2015-12-01T06:04:14  *** splix has quit IRC
 205 2015-12-01T06:04:20  *** splix_ has joined #bitcoin-dev
 206 2015-12-01T06:04:50  *** Madars has quit IRC
 207 2015-12-01T06:05:16  *** Madars has joined #bitcoin-dev
 208 2015-12-01T06:06:29  *** nessence has quit IRC
 209 2015-12-01T06:06:35  *** nessence_ has joined #bitcoin-dev
 210 2015-12-01T06:30:51  *** CodeShark_ has joined #bitcoin-dev
 211 2015-12-01T06:31:47  *** happyfr0gg has quit IRC
 212 2015-12-01T06:32:58  *** roxtrongo has quit IRC
 213 2015-12-01T06:33:35  *** roxtrongo has joined #bitcoin-dev
 214 2015-12-01T06:36:58  *** moa has quit IRC
 215 2015-12-01T06:40:06  *** Tanktonamore has quit IRC
 216 2015-12-01T06:42:23  *** tulip has quit IRC
 217 2015-12-01T06:47:07  *** nessence_ has quit IRC
 218 2015-12-01T06:47:40  *** neozaru has joined #bitcoin-dev
 219 2015-12-01T06:49:44  *** ThomasV has quit IRC
 220 2015-12-01T06:50:39  *** Genitrus_ has quit IRC
 221 2015-12-01T07:04:17  *** moa has joined #bitcoin-dev
 222 2015-12-01T07:17:07  *** zeiris has quit IRC
 223 2015-12-01T07:28:10  *** BW^- has joined #bitcoin-dev
 224 2015-12-01T07:28:29  <BW^-> ouch, bitcoind 0.11.2 crashed by segmentation fault.
 225 2015-12-01T07:28:31  *** Lyth0s_ has joined #bitcoin-dev
 226 2015-12-01T07:29:18  <BW^-> is there any way to audit the local blockchain copy's correctness - maybe that should be adequately taken care of at startup with the "init message: Verifying blocks...\nVerifying last 288 blocks at level 3"  part ???
 227 2015-12-01T07:29:30  <BW^-> or could there be corruption more than 288 blocks back?
 228 2015-12-01T07:31:17  *** stapler117 has quit IRC
 229 2015-12-01T07:31:22  *** Lyth0s has quit IRC
 230 2015-12-01T07:34:10  *** paveljanik has joined #bitcoin-dev
 231 2015-12-01T07:34:11  *** paveljanik has quit IRC
 232 2015-12-01T07:34:11  *** paveljanik has joined #bitcoin-dev
 233 2015-12-01T07:43:02  *** metalcamp has joined #bitcoin-dev
 234 2015-12-01T07:43:04  *** stapler117 has joined #bitcoin-dev
 235 2015-12-01T07:49:58  <gmaxwell> BW^-: you can tell it to check more by changing by setting the checkblocks argument.
 236 2015-12-01T07:50:16  <gmaxwell> Was there any more info with the segfault or a log entry right before it?
 237 2015-12-01T07:52:18  *** neozaru has quit IRC
 238 2015-12-01T07:53:20  *** PaulCapestany has quit IRC
 239 2015-12-01T07:53:31  *** ThomasV has joined #bitcoin-dev
 240 2015-12-01T07:53:44  <BW^-> gmaxwell: see https://pastebin.mozilla.org/8853493
 241 2015-12-01T07:54:55  *** PaulCapestany has joined #bitcoin-dev
 242 2015-12-01T07:56:07  <BW^-> gmaxwell: what is leveldb's flushing policy, how many blocks back *could* be broken?
 243 2015-12-01T07:56:17  <BW^-> presuming the sigsegv was non-nasty
 244 2015-12-01T07:56:30  <BW^-> gmaxwell: if it happens ever again, i'll have a core dump that time. this time none sorry. :(
 245 2015-12-01T07:56:43  <BW^-> i wonder if it could just be like non-ECC RAM goofing, but don't hope so.
 246 2015-12-01T07:58:04  *** nessence has joined #bitcoin-dev
 247 2015-12-01T07:58:46  *** Ylbam has joined #bitcoin-dev
 248 2015-12-01T07:59:42  <gmaxwell> blocks aren't stored in leveldb.
 249 2015-12-01T08:00:12  <da2ce7> gmaxwell: great comment btw, I wish there was a place to catalouge such things: https://bitcointalk.org/index.php?topic=1162684.msg13115666#msg13115666
 250 2015-12-01T08:02:14  *** nessence has quit IRC
 251 2015-12-01T08:03:05  *** Dyanisus has joined #bitcoin-dev
 252 2015-12-01T08:07:55  *** BW^- has quit IRC
 253 2015-12-01T08:08:18  *** damethos has joined #bitcoin-dev
 254 2015-12-01T08:08:38  *** BW^- has joined #bitcoin-dev
 255 2015-12-01T08:08:49  <BW^-> gmaxwell: sorry diss - did i miss anything you said?
 256 2015-12-01T08:08:58  *** Grouver has joined #bitcoin-dev
 257 2015-12-01T08:10:10  <gmaxwell> BW^-: sadly no indication of the cause in that log, but if there was database corruption it almost certantly would have had clear log messages.
 258 2015-12-01T08:10:32  <gmaxwell> if it crashes again you could run under gdb so that if crashes a third time you get a backtrace.
 259 2015-12-01T08:11:45  <BW^-> right
 260 2015-12-01T08:11:54  <BW^-> gmaxwell: exactly, it's now set up to catch core
 261 2015-12-01T08:11:56  <BW^-> dump core
 262 2015-12-01T08:14:50  *** agricocb has joined #bitcoin-dev
 263 2015-12-01T08:17:51  *** DougieBot5000 has quit IRC
 264 2015-12-01T08:19:02  *** won9 has quit IRC
 265 2015-12-01T08:33:04  <BW^-> gmaxwell: if there's an error in the database in my BitcoinD, and then I make a full blockchain sync from that broken BitcoiND into *ANOTHER* fully syncing bitcoin node,
 266 2015-12-01T08:33:15  <BW^-> then during sync the first BitcoinD would indeed print errors and stuff, right?
 267 2015-12-01T08:33:26  <BW^-> or at least, the second node would realize it's getting a bad blockchain
 268 2015-12-01T08:33:27  <BW^-> and warn
 269 2015-12-01T08:33:58  <BW^-> gmaxwell: so a broken blockchain DB would always come to surface with all clarity, either in the broken node, or in the node that makes a full sync from the broken node,
 270 2015-12-01T08:33:59  <BW^-> right?
 271 2015-12-01T08:38:07  *** ghtdak has quit IRC
 272 2015-12-01T08:39:55  *** ghtdak has joined #bitcoin-dev
 273 2015-12-01T08:40:11  *** Keefe has quit IRC
 274 2015-12-01T08:40:16  *** BashCo has quit IRC
 275 2015-12-01T08:42:55  *** arowser has quit IRC
 276 2015-12-01T08:43:21  *** arowser has joined #bitcoin-dev
 277 2015-12-01T08:47:55  *** noamh has joined #bitcoin-dev
 278 2015-12-01T08:49:17  *** stapler117 has quit IRC
 279 2015-12-01T08:54:26  *** lnostdal has quit IRC
 280 2015-12-01T08:55:51  *** won9 has joined #bitcoin-dev
 281 2015-12-01T08:58:36  *** p15 has quit IRC
 282 2015-12-01T09:01:04  *** p15 has joined #bitcoin-dev
 283 2015-12-01T09:01:28  <gmaxwell> BW^-: maybe, if the utxo database is corrupt thats not read during a sync from another node.
 284 2015-12-01T09:05:19  *** BashCo has joined #bitcoin-dev
 285 2015-12-01T09:05:36  *** noamh has quit IRC
 286 2015-12-01T09:06:10  *** lnostdal has joined #bitcoin-dev
 287 2015-12-01T09:15:37  *** stapler117 has joined #bitcoin-dev
 288 2015-12-01T09:15:52  <gmaxwell> da2ce7: thanks for your addition in that thread; it's thoughtful.
 289 2015-12-01T09:16:31  *** paveljanik has quit IRC
 290 2015-12-01T09:24:18  *** p15 has quit IRC
 291 2015-12-01T09:26:02  *** gielbier has joined #bitcoin-dev
 292 2015-12-01T09:31:22  *** ThomasV has quit IRC
 293 2015-12-01T09:36:08  *** tulip has joined #bitcoin-dev
 294 2015-12-01T09:39:42  *** Lightsword has quit IRC
 295 2015-12-01T09:41:02  *** scosant_ has joined #bitcoin-dev
 296 2015-12-01T09:42:38  *** scosant has quit IRC
 297 2015-12-01T09:45:31  *** StormDev has joined #bitcoin-dev
 298 2015-12-01T09:49:55  *** BW^- has quit IRC
 299 2015-12-01T09:50:38  *** graingert has joined #bitcoin-dev
 300 2015-12-01T09:57:54  *** Lyth0s_ has quit IRC
 301 2015-12-01T09:59:51  *** MoALTz_ has joined #bitcoin-dev
 302 2015-12-01T10:02:34  *** MoALTz has quit IRC
 303 2015-12-01T10:03:54  *** roconnor has quit IRC
 304 2015-12-01T10:06:41  *** Lightsword has joined #bitcoin-dev
 305 2015-12-01T10:07:17  *** gill3s has joined #bitcoin-dev
 306 2015-12-01T10:10:48  *** wraithm has quit IRC
 307 2015-12-01T10:13:16  *** benrcole has joined #bitcoin-dev
 308 2015-12-01T10:18:23  *** ThomasV has joined #bitcoin-dev
 309 2015-12-01T10:25:54  *** lnostdal has quit IRC
 310 2015-12-01T10:27:14  *** lnostdal has joined #bitcoin-dev
 311 2015-12-01T10:27:19  *** AaronvanW has joined #bitcoin-dev
 312 2015-12-01T10:27:20  *** AaronvanW has joined #bitcoin-dev
 313 2015-12-01T10:37:50  *** JackH has joined #bitcoin-dev
 314 2015-12-01T10:39:14  *** brooss has quit IRC
 315 2015-12-01T10:41:44  *** _yoy_ has quit IRC
 316 2015-12-01T10:43:09  *** brooss has joined #bitcoin-dev
 317 2015-12-01T10:44:10  *** melvster has quit IRC
 318 2015-12-01T10:45:00  *** matsjj has quit IRC
 319 2015-12-01T10:45:35  *** matsjj has joined #bitcoin-dev
 320 2015-12-01T10:46:33  *** owlhooter has quit IRC
 321 2015-12-01T10:46:51  *** owlhooter has joined #bitcoin-dev
 322 2015-12-01T10:48:27  *** chmod755 has quit IRC
 323 2015-12-01T10:48:29  *** bonks has quit IRC
 324 2015-12-01T10:48:54  *** chmod755 has joined #bitcoin-dev
 325 2015-12-01T10:49:55  *** bonks has joined #bitcoin-dev
 326 2015-12-01T10:54:10  *** noamh has joined #bitcoin-dev
 327 2015-12-01T10:54:23  *** CodesInChaos has joined #bitcoin-dev
 328 2015-12-01T10:57:50  *** Lightsword_ has joined #bitcoin-dev
 329 2015-12-01T10:57:53  *** Lightsword has quit IRC
 330 2015-12-01T10:57:54  *** Lightsword_ is now known as Lightsword
 331 2015-12-01T10:58:20  *** melvster has joined #bitcoin-dev
 332 2015-12-01T10:58:34  *** noamh has quit IRC
 333 2015-12-01T10:58:55  *** gielbier has quit IRC
 334 2015-12-01T11:01:10  *** calibre720 has joined #bitcoin-dev
 335 2015-12-01T11:08:06  *** nivah has quit IRC
 336 2015-12-01T11:08:13  *** noamh has joined #bitcoin-dev
 337 2015-12-01T11:09:22  *** PaulCape_ has joined #bitcoin-dev
 338 2015-12-01T11:09:50  *** Elglobo has quit IRC
 339 2015-12-01T11:09:55  *** Elglobonoob has quit IRC
 340 2015-12-01T11:10:42  *** PaulCapestany has quit IRC
 341 2015-12-01T11:11:51  *** Elglobo has joined #bitcoin-dev
 342 2015-12-01T11:16:31  *** erasmospunk has joined #bitcoin-dev
 343 2015-12-01T11:16:34  *** moa has quit IRC
 344 2015-12-01T11:26:51  *** BW^- has joined #bitcoin-dev
 345 2015-12-01T11:26:59  <BW^-> gmaxwell: aha wait.. so.. what is actually stored in leveldb then??
 346 2015-12-01T11:27:26  <BW^-> gmaxwell: anyhow, since the full syncing node that would download all of it, checks all data bottom up, then i mean at least if no new block comes in in like 3 hours on the syncing node,
 347 2015-12-01T11:27:29  <BW^-> gmaxwell: that shows that something is broken
 348 2015-12-01T11:27:46  <gmaxwell> an index to blocks (e.g. effectively headers and pointers to blocks) and a database of spendable transaction outputs which is the state needed to verify new blocks as they come in.
 349 2015-12-01T11:29:00  *** CoinMuncher has joined #bitcoin-dev
 350 2015-12-01T11:29:30  <BW^-> gmaxwell: wait, is there any command line option to perform a full DB rebuild?
 351 2015-12-01T11:29:47  <BW^-> gmaxwell: or I just install a new instance and ask it to use 127.0.0.1:8333 as only source?
 352 2015-12-01T11:29:57  <sipa> BW^-: yes, -reindex
 353 2015-12-01T11:29:57  <gmaxwell> BW^-: -reindex
 354 2015-12-01T11:30:19  <BW^-> aha.  what if -reindex actually finds an error, will it terminate with error and i need to sync from beginning?
 355 2015-12-01T11:30:52  *** matsjj has quit IRC
 356 2015-12-01T11:30:58  <BW^-> (these Q:s i'm asking now are not So important for immediate practical purposes, but, they do give a very valuable contextual understanding for the best practice in how to manage the thing)
 357 2015-12-01T11:31:30  <erasmospunk> If the network needs 600s by average to find a block hash with 70 zeroed bits. How much time it would take to find a block hash with 7 zeroed bits? Is it a linear relationship?
 358 2015-12-01T11:31:47  <sipa> erasmospunk: logarithmic
 359 2015-12-01T11:32:23  <sipa> BW^-: it will start downloading from network wherever it stops being able to sync from disk
 360 2015-12-01T11:33:33  <sipa> erasmospunk: 63 bits less means around 9 quintillion times faster
 361 2015-12-01T11:34:03  <sipa> erasmospunk: so it would take the network 1/10000 of a nanosecond
 362 2015-12-01T11:34:04  <erasmospunk> sipa: that makes sense. Basically I would like to prove a formula
 363 2015-12-01T11:34:26  *** calibre720 has quit IRC
 364 2015-12-01T11:35:28  *** jgarzik has quit IRC
 365 2015-12-01T11:35:28  *** trixisowned has quit IRC
 366 2015-12-01T11:35:44  *** brianhoffman has quit IRC
 367 2015-12-01T11:35:57  *** jgarzik has joined #bitcoin-dev
 368 2015-12-01T11:35:57  *** jgarzik has joined #bitcoin-dev
 369 2015-12-01T11:36:41  *** trixisowned has joined #bitcoin-dev
 370 2015-12-01T11:36:49  *** owlhooter has quit IRC
 371 2015-12-01T11:37:02  *** owlhooter has joined #bitcoin-dev
 372 2015-12-01T11:38:14  *** lnostdal has quit IRC
 373 2015-12-01T11:38:53  *** jayne has quit IRC
 374 2015-12-01T11:40:06  *** fkhan has quit IRC
 375 2015-12-01T11:40:24  <gmaxwell> BW^-: if reindex finds an eror, it will stop using the local data at that point and fetch the rest from the network.
 376 2015-12-01T11:46:12  *** one_zero has quit IRC
 377 2015-12-01T11:47:24  *** jayne has joined #bitcoin-dev
 378 2015-12-01T11:47:56  *** jgarzik_ has joined #bitcoin-dev
 379 2015-12-01T11:48:54  *** jgarzik has quit IRC
 380 2015-12-01T11:51:12  *** lnostdal has joined #bitcoin-dev
 381 2015-12-01T11:51:30  *** phish_ has joined #bitcoin-dev
 382 2015-12-01T11:52:06  <erasmospunk> sipa: is this correct? "If the network needs 600 seconds to find a valid block, it will produce by average 64 blocks (about every 9s) that would have been valid if the difficulty was 64 times lower"
 383 2015-12-01T11:53:15  *** fkhan has joined #bitcoin-dev
 384 2015-12-01T11:53:35  <kinlo> it would produce on average 64 blocks per 600 sec if the difficulty is 64 times too low yes
 385 2015-12-01T11:54:21  <BW^-> ahaa
 386 2015-12-01T11:54:22  *** phish has quit IRC
 387 2015-12-01T11:54:26  <BW^-> gmaxwell: and all the remaining broken or suspected to be broken data locally will just be discarded?
 388 2015-12-01T11:54:27  <BW^-> gmaxwell: so it's like a SQL "pragma VACUUM();" + COMPLETE self healing routine?
 389 2015-12-01T11:54:29  <BW^-> gmaxwell: and it also delete as any old database files that will have become obsolete as of that moment?
 390 2015-12-01T11:54:31  <BW^-> so it's like a whole checkup for/includes all files in the data directory that it may have created before
 391 2015-12-01T11:55:04  <erasmospunk> kinlo: thanks for the ACK. Is there a way to mathematically prove it?
 392 2015-12-01T11:55:24  <sipa> BW^-: -reindex is literally "throw your databases away and start over with the blocks you still have"
 393 2015-12-01T11:55:33  <sipa> BW^-: the databases are literally deleted
 394 2015-12-01T11:55:34  <kinlo> isn't vacuum a full copy of the database?  looks to me a very expensive operation on the bitcoin database...
 395 2015-12-01T11:55:57  <kinlo> erasmospunk: its logical...  dunno what type of mathematical evidence you're looking for...
 396 2015-12-01T11:57:10  *** Lightsword has quit IRC
 397 2015-12-01T11:57:57  <BW^-> sipa: awesome - and by "database" here, that also includes *any* previous files that BitcoinD created in its data directory in the past,
 398 2015-12-01T11:58:01  <BW^-> whatever nasty the sigsegv was, as long as the filesystem is intact so filenames not were garbled during an OS crash
 399 2015-12-01T11:58:01  <BW^-> *b.c. of an OS crash
 400 2015-12-01T11:58:13  <wumpus> kinlo: leveldb has no 'vacuum'
 401 2015-12-01T11:58:17  <sipa> BW^-: everything consensus related
 402 2015-12-01T11:58:37  <kinlo> wumpus: weren't we talking about sqlite?
 403 2015-12-01T11:58:37  <erasmospunk> kinlo: a formal mathematical proof. It feels logical but having a mathematical proof has a more weight
 404 2015-12-01T11:58:39  <sipa> BW^-: it does not delete wallets, ip databases, fee estimation data, ...
 405 2015-12-01T11:58:52  <wumpus> kinlo: not that I know of?
 406 2015-12-01T11:58:58  <kinlo> ignore me then
 407 2015-12-01T11:59:04  <wumpus> kinlo: but I just happen to fall into this conversation
 408 2015-12-01T11:59:12  <kinlo> wumpus: so did I :)
 409 2015-12-01T11:59:21  <sipa> BW^-: it also doesn't delete block files, obviously
 410 2015-12-01T11:59:52  <wumpus> it removes all indices and running state based on the block files
 411 2015-12-01T12:02:10  *** phish- has joined #bitcoin-dev
 412 2015-12-01T12:02:32  <BW^-> (sec, restart)
 413 2015-12-01T12:02:32  *** BW^- has quit IRC
 414 2015-12-01T12:03:14  *** BW^- has joined #bitcoin-dev
 415 2015-12-01T12:03:18  <BW^-> sipa: what if block files are corrupt?
 416 2015-12-01T12:03:20  <wumpus> and doesn't only do the minimum to rebuild them, it treats them as freshly received from the network, so re-does all checking and validation of the blocks
 417 2015-12-01T12:03:28  *** CodeShark_ has quit IRC
 418 2015-12-01T12:03:38  <wumpus> <gmaxwell> BW^-: if reindex finds an eror, it will stop using the local data at that point and fetch the rest from the network.
 419 2015-12-01T12:04:00  <wumpus> no need to repeat yourself
 420 2015-12-01T12:04:06  *** CodeShark_ has joined #bitcoin-dev
 421 2015-12-01T12:04:22  <sipa> i answered that question earlier too :)
 422 2015-12-01T12:04:27  <BW^-> ah sorry, just got brief impression that sipa meant that block data had a special status.
 423 2015-12-01T12:04:35  <wumpus> sipa: looping!
 424 2015-12-01T12:04:36  <BW^-> so -reindex is a real vacuum - awesome, thanks!
 425 2015-12-01T12:04:51  <sipa> BW^-: not vacuum; it *wipes and starts over*
 426 2015-12-01T12:04:59  <BW^-> right
 427 2015-12-01T12:05:02  <sipa> it takes as long as downloading again from scratch
 428 2015-12-01T12:05:10  <wumpus> no, it's not just that, it doesn't just rebuild indices, it *revalidates and  rechecks everything as if received from the network*
 429 2015-12-01T12:05:11  <sipa> except no bandwidth
 430 2015-12-01T12:05:14  <BW^-> sipa: ..minus the network latency, no?
 431 2015-12-01T12:05:18  *** phish_ has quit IRC
 432 2015-12-01T12:05:19  <BW^-> exactly got it
 433 2015-12-01T12:05:19  <BW^-> right
 434 2015-12-01T12:05:28  <BW^-> last Q on this topic: what happens if you press ctrl+C during reindex?
 435 2015-12-01T12:05:31  *** won9 has quit IRC
 436 2015-12-01T12:05:37  <BW^-> also, reindex happens *before* it opens up for any network interaction right?
 437 2015-12-01T12:05:43  *** jayne has quit IRC
 438 2015-12-01T12:05:44  <wumpus> it will continue next time
 439 2015-12-01T12:05:49  <wumpus> yes
 440 2015-12-01T12:05:54  <sipa> no
 441 2015-12-01T12:06:03  <sipa> network connections are up during reindex
 442 2015-12-01T12:06:11  <BW^-> sipa: but unresponsive?
 443 2015-12-01T12:06:13  <sipa> but all block fetching/sync logic is disabled
 444 2015-12-01T12:06:14  *** ploopkazoo has quit IRC
 445 2015-12-01T12:06:18  <BW^-> aha, so even if i start BitcoinD *without* -reindex next time, it will do the reindex then anyhow - got it
 446 2015-12-01T12:06:18  <BW^-> mhm
 447 2015-12-01T12:06:19  <wumpus> well it may do some network interaction, but nothing useful like serve or receive blocks IIRC
 448 2015-12-01T12:06:28  <sipa> it can serve blocks
 449 2015-12-01T12:06:40  <BW^-> sipa: reindexed blocks or all blocks?
 450 2015-12-01T12:06:45  <wumpus> it could, but it doesn't
 451 2015-12-01T12:06:47  <sipa> onky reindexed ones
 452 2015-12-01T12:06:54  <sipa> wumpus: i expect it does?
 453 2015-12-01T12:06:58  <sipa> no reason why not
 454 2015-12-01T12:07:06  <wumpus> sipa: no, no block serving happens during initial sync
 455 2015-12-01T12:07:12  <sipa> oh, of course!
 456 2015-12-01T12:07:23  <wumpus> it could, but that's disabled...
 457 2015-12-01T12:08:00  <wumpus> sipa: https://github.com/bitcoin/bitcoin/issues/6971
 458 2015-12-01T12:08:01  <BW^-> ok cool, thanks for letting me know :D
 459 2015-12-01T12:08:38  *** ploopkazoo has joined #bitcoin-dev
 460 2015-12-01T12:09:19  <wumpus> so yes for whitelisted peers it's enabled now
 461 2015-12-01T12:09:29  *** wallet42 has joined #bitcoin-dev
 462 2015-12-01T12:09:32  *** fkhan has quit IRC
 463 2015-12-01T12:12:46  *** wallet42 has quit IRC
 464 2015-12-01T12:13:19  *** phish_ has joined #bitcoin-dev
 465 2015-12-01T12:13:34  <wumpus> well I guess if you ask it for specific blocks it will still serve them
 466 2015-12-01T12:14:07  *** jayne has joined #bitcoin-dev
 467 2015-12-01T12:14:18  *** ThomasV has quit IRC
 468 2015-12-01T12:14:32  *** calibre720 has joined #bitcoin-dev
 469 2015-12-01T12:15:38  *** wallet421 has joined #bitcoin-dev
 470 2015-12-01T12:15:39  *** wallet421 has joined #bitcoin-dev
 471 2015-12-01T12:15:39  *** wallet421 is now known as wallet42
 472 2015-12-01T12:16:28  *** phish- has quit IRC
 473 2015-12-01T12:20:00  *** DigiByteDev has joined #bitcoin-dev
 474 2015-12-01T12:22:06  *** brianhoffman has joined #bitcoin-dev
 475 2015-12-01T12:22:15  *** fkhan has joined #bitcoin-dev
 476 2015-12-01T12:37:23  *** StormDev has quit IRC
 477 2015-12-01T12:37:58  *** StormDev has joined #bitcoin-dev
 478 2015-12-01T12:39:11  *** wallet42 has quit IRC
 479 2015-12-01T12:43:26  *** _yoy_ has joined #bitcoin-dev
 480 2015-12-01T12:43:51  *** IAmNotDorian has joined #bitcoin-dev
 481 2015-12-01T12:44:11  *** binaryFateCloud has joined #bitcoin-dev
 482 2015-12-01T12:44:35  *** lnostdal has quit IRC
 483 2015-12-01T12:51:05  *** jonnydoe has joined #bitcoin-dev
 484 2015-12-01T12:51:35  *** ThomasV has joined #bitcoin-dev
 485 2015-12-01T12:51:52  *** jonnydoe has left #bitcoin-dev
 486 2015-12-01T12:55:34  *** erasmospunk has quit IRC
 487 2015-12-01T12:56:12  *** kadoban has joined #bitcoin-dev
 488 2015-12-01T12:56:20  *** lnostdal has joined #bitcoin-dev
 489 2015-12-01T13:01:26  <btcdrak> da2ce7: time to ransomware gmaxwell into setting up a blog (instead of paying ransom in bitcoin).
 490 2015-12-01T13:01:42  *** justice has joined #bitcoin-dev
 491 2015-12-01T13:05:12  *** wallet42 has joined #bitcoin-dev
 492 2015-12-01T13:06:10  *** Sandor_Kolar has joined #bitcoin-dev
 493 2015-12-01T13:06:14  *** DatBeeDoe has joined #bitcoin-dev
 494 2015-12-01T13:10:03  *** DatBeeDoe has quit IRC
 495 2015-12-01T13:15:15  *** Sandor_Kolar has left #bitcoin-dev
 496 2015-12-01T13:17:31  <BW^-> "LoadBlockIndexDB: transaction index disabled" - wait, does this have any performance impact on ordinary syncing?
 497 2015-12-01T13:17:46  *** wallet42 has quit IRC
 498 2015-12-01T13:18:06  *** wallet42 has joined #bitcoin-dev
 499 2015-12-01T13:19:39  <jonasschnelli> BW^- : no
 500 2015-12-01T13:21:06  *** LeMiner has quit IRC
 501 2015-12-01T13:22:14  *** wallet42 has quit IRC
 502 2015-12-01T13:22:15  *** BW^- has quit IRC
 503 2015-12-01T13:22:16  <phantomcircuit> BW^-, actually it being disabled has a significant positive impact
 504 2015-12-01T13:22:26  <phantomcircuit> ie if you enable it you'll do a bunch of work you otherwise wouldn't have to do
 505 2015-12-01T13:23:11  <jonasschnelli> phantomcircuit: he's gone already... :/ Seems to be in hurry...
 506 2015-12-01T13:23:28  *** BW^- has joined #bitcoin-dev
 507 2015-12-01T13:23:30  <BW^-> "LoadBlockIndexDB: transaction index disabled" - wait, does this have any performance impact on ordinary syncing?
 508 2015-12-01T13:24:07  <jonasschnelli> hah.. :) BW^- no...
 509 2015-12-01T13:24:09  <BW^-> gmaxwell: supertiny feature req: something that would be nice in the "UpdateTip:" beyond the "progress=0.9.." report, is an ETA of when the full sync will be done
 510 2015-12-01T13:24:32  <BW^-> jonasschnelli: right, so that's only to figure the "balances" for addresses, got it.
 511 2015-12-01T13:25:15  <BW^-> gmaxwell: as in date and time approximation, just a very very simple rudimentary calculation
 512 2015-12-01T13:25:19  <jonasschnelli> BW^- Yes. Somehow. But if you just want to "observer" a buch of addresses, you can also use "importaddress".
 513 2015-12-01T13:25:35  <jonasschnelli> BW^- ETA is not easy
 514 2015-12-01T13:25:58  <phantomcircuit> BW^-, that means txindex=0 which is faster to sync than txindex=1
 515 2015-12-01T13:26:10  <phantomcircuit> with txindex=1 you build a transaction index as well as the utxo database
 516 2015-12-01T13:26:23  <phantomcircuit> the default setting of txindex=0 is faster
 517 2015-12-01T13:26:32  <phantomcircuit> (you do less work)
 518 2015-12-01T13:26:43  <BW^-> jonasschnelli: just based on thes peed of the development of "progress=".
 519 2015-12-01T13:26:48  <BW^-> i know it's gonna be badly imprecise
 520 2015-12-01T13:27:00  <BW^-> just based on speed compared with last 1 or 2 UpdateTips, that's all
 521 2015-12-01T13:27:16  <BW^-> got it.
 522 2015-12-01T13:27:32  <jonasschnelli> BW^-: you could also do that on the client side. <time-used-since-bitcoind-start> / <progress>.
 523 2015-12-01T13:27:39  *** rook520 has quit IRC
 524 2015-12-01T13:28:16  <BW^-> jonasschnelli: sure.  but just like in console output watching the log. but yeah you're right
 525 2015-12-01T13:28:32  <jonasschnelli> BW^- : UpdateTip is also a critical function. Adding more CPU work there might result in slower syncing (although slightly).
 526 2015-12-01T13:30:20  <BW^-> aha got it. ok it's too integrated to be convenient so to speak, got it.
 527 2015-12-01T13:30:38  <BW^-> (probably that ETA calculation would just be like 1000-5000 cpu cycles extra work per UpdateTip, but anyhow.)
 528 2015-12-01T13:32:44  <jonasschnelli> right... might be okay. But time estimations are mostly imprecise. Maybe your system needs 90% of the resources elsewhere during the last 5% of initial block download...
 529 2015-12-01T13:32:54  <jonasschnelli> a % value keeps the time dimension out. :)
 530 2015-12-01T13:32:56  *** matsjj has joined #bitcoin-dev
 531 2015-12-01T13:33:10  *** matsjj has quit IRC
 532 2015-12-01T13:33:23  *** matsjj has joined #bitcoin-dev
 533 2015-12-01T13:38:38  *** lnostdal has quit IRC
 534 2015-12-01T13:39:30  *** Giszmo has joined #bitcoin-dev
 535 2015-12-01T13:41:07  *** Guyver2 has joined #bitcoin-dev
 536 2015-12-01T13:47:35  *** BW^- has quit IRC
 537 2015-12-01T13:49:41  *** benrcole has quit IRC
 538 2015-12-01T13:50:23  *** BW^- has joined #bitcoin-dev
 539 2015-12-01T13:50:39  *** lnostdal has joined #bitcoin-dev
 540 2015-12-01T13:50:51  <BW^-> will "-whitelist 127.0.0.1/32"  for sure make the node that connects with "-connect=127.0.0.1:8333 " be whitelisted?
 541 2015-12-01T13:51:19  <BW^-> if there'd be some way to make the whitelist interface-independent (as in, 127.0.0.1 is the loopback interface's ip), that could perhaps be a good thing
 542 2015-12-01T13:51:20  <BW^-> like
 543 2015-12-01T13:51:29  <BW^-> "-whitelist */32" , anyhow duno
 544 2015-12-01T13:52:15  <wumpus> you could use -whitelist=127.0.0.1   .. but it's better to use a whitebind=XXX in that case
 545 2015-12-01T13:52:55  <wumpus> (whitebind opens an extra port, everyone that connects to there is whitelisted)
 546 2015-12-01T13:53:19  <BW^-> wumpus: aha you mean that's more reliable, mhm
 547 2015-12-01T13:53:26  <wumpus> e.g. -whitebind=127.0.0.1:12345
 548 2015-12-01T13:53:55  <wumpus> well in some cases it may be right to trust all connecting coming from localhost, but you have to be careful there, e.g. Tor hidden service connections also come from localhost
 549 2015-12-01T13:54:26  <wumpus> easy to screw up there and accidentally whitelist much more than you intended
 550 2015-12-01T13:55:34  *** guest234234 has quit IRC
 551 2015-12-01T13:57:18  *** CheckDavid has joined #bitcoin-dev
 552 2015-12-01T13:59:58  *** Ducky- has quit IRC
 553 2015-12-01T14:00:14  <BW^-> wumpus: interesting, at least before the sync has been fully done, on 0.11.2,  "-whitebind=127.0.0.1:8334" does not cause any port to be opened
 554 2015-12-01T14:00:49  *** jgarzik_ has quit IRC
 555 2015-12-01T14:00:49  *** jgarzik_ has joined #bitcoin-dev
 556 2015-12-01T14:00:52  *** jgarzik_ is now known as jgarzik
 557 2015-12-01T14:01:42  *** Ducky- has joined #bitcoin-dev
 558 2015-12-01T14:02:36  <wumpus> BW^-: just tried it out, works fine for me - opens the port along with the default port
 559 2015-12-01T14:03:39  <BW^-> wumpus: weird. i'm completely sure mine did not work
 560 2015-12-01T14:03:57  <BW^-> wumpus: maybe it's because mine is not fully synced yet, and the syncing thing would be introduced in 0.12
 561 2015-12-01T14:04:31  <wumpus> no, opening ports has nothing to do with being synced or not
 562 2015-12-01T14:04:46  <BW^-> wumpus: then weird!
 563 2015-12-01T14:05:19  <tulip> BW^-: your node will open the socket, but won't advertise itself until synched.
 564 2015-12-01T14:05:38  <BW^-> wumpus: find my bitcoind arguments in PM
 565 2015-12-01T14:06:18  <BW^-> tulip: wait, what does that mean?    netstat -a | grep 8334 shows nothing
 566 2015-12-01T14:06:25  <BW^-> and telnet localhost 8334 gives connection refused
 567 2015-12-01T14:06:47  <wumpus> and 8333 is open?
 568 2015-12-01T14:06:48  <tulip> what's with the non standard port number? bitcoind uses 8333 for p2p.
 569 2015-12-01T14:07:06  <BW^-> tulip: i did "-whitebind 127.0.0.1:8334"
 570 2015-12-01T14:07:08  <BW^-> wumpus: yes 8333 is open!
 571 2015-12-01T14:07:44  <BW^-> tulip: find my BitcoinD (0.11.2) args in PM also.
 572 2015-12-01T14:08:16  <BW^-> weird. anyhow i'll see if it opens after sync is complete. i guess this should *NOT* be a firewall thing.
 573 2015-12-01T14:08:23  <tulip> that's a strange configuration.
 574 2015-12-01T14:08:24  *** Keefe has joined #bitcoin-dev
 575 2015-12-01T14:08:46  <wumpus> it's not a firewall thing as then it would show up in netstat, just not be connectable
 576 2015-12-01T14:09:09  <wumpus> it won't magically reopen after sync either, there is no code for that, it either opens together with 8333 or it never will
 577 2015-12-01T14:10:07  <BW^-> i think it should be correct
 578 2015-12-01T14:10:27  <BW^-> wumpus: interesting, i wonder what causes it not to open then - a Magic Bug? :))
 579 2015-12-01T14:10:49  <tulip> why are you using two verification threads, but accepting up to 500 incoming connections? those at the bounds of what you would use for resource constrained, and unlimited resource configurations respectively.
 580 2015-12-01T14:11:33  <BW^-> tulip: yes that is unbalanced,  that part is example
 581 2015-12-01T14:11:48  <wumpus> I don't know, possibly, could be that the command line argument is ignored somehow. No one else is having problems with whitebind that I know of...
 582 2015-12-01T14:12:26  *** noamh has quit IRC
 583 2015-12-01T14:12:31  <tulip> I am using whitebind in master, no problems.
 584 2015-12-01T14:12:38  <BW^-> mhm.
 585 2015-12-01T14:12:42  *** flo626 has quit IRC
 586 2015-12-01T14:12:45  <BW^-> i guess to figure out more, i'd need to dig into the sourcecode
 587 2015-12-01T14:12:50  <wumpus> you're sure that this is 0.11 and not 0.10?
 588 2015-12-01T14:13:07  *** tawar has joined #bitcoin-dev
 589 2015-12-01T14:13:25  <tulip> the log prints are quite informative generally, looking for a "Bound to" line in them would be useful.
 590 2015-12-01T14:13:54  *** tantalum has joined #bitcoin-dev
 591 2015-12-01T14:14:46  <wumpus> yes, there should be a "Bound to 127.0.0.1:8334" message in the debug.log
 592 2015-12-01T14:15:00  <wumpus> (or alternatively, errors)
 593 2015-12-01T14:16:50  *** noamh has joined #bitcoin-dev
 594 2015-12-01T14:17:43  <BW^-> wumpus: 0.11.2 yes.
 595 2015-12-01T14:17:51  <BW^-> wumpus: there's not. and no errors.
 596 2015-12-01T14:20:29  <wumpus> can you try without any other arguments? just -whitebind=X, and, say, -testnet
 597 2015-12-01T14:21:07  <BW^-> wumpus,tulip: startup log: http://pastebin.com/B9w8mmbY
 598 2015-12-01T14:21:08  <wumpus> if there is nothing in the log it can virtually only be an argument parsing error somewhere
 599 2015-12-01T14:21:24  <BW^-> wumpus: i'll try first with just -whitelist=myip/32 and connect
 600 2015-12-01T14:22:01  <wumpus> the message would be after the part of the log you pasted
 601 2015-12-01T14:22:54  <wumpus> I'm pretty sure that one will be ignored too, but you can try ofc
 602 2015-12-01T14:23:51  <BW^-> wumpus: well at least also with -whitelist on A and -connect on B, before the full sync has happened, B does *not* get any blocks
 603 2015-12-01T14:24:21  <wumpus> OK, yes, that change is only in master/0.12
 604 2015-12-01T14:24:40  <BW^-> aha gotcha
 605 2015-12-01T14:25:17  <BW^-> wumpus,tulip: here's the next part of the startup log http://pastebin.com/TiK4sUnX
 606 2015-12-01T14:27:38  *** tulip has quit IRC
 607 2015-12-01T14:27:56  *** StormDev has quit IRC
 608 2015-12-01T14:28:03  *** clopez has joined #bitcoin-dev
 609 2015-12-01T14:28:10  <BW^-> wumpus: so still no explanation for why the -whitebind doesn't work right?
 610 2015-12-01T14:28:20  <BW^-> i'll see if anything changes after the full sync, and otherwise dig into firewall and sourcecode
 611 2015-12-01T14:28:31  <wumpus> <wumpus> can you try without any other arguments? just -whitebind=X, and, say, -testnet
 612 2015-12-01T14:28:43  *** StormDev has joined #bitcoin-dev
 613 2015-12-01T14:30:10  *** TheAdversary has joined #bitcoin-dev
 614 2015-12-01T14:31:52  <BW^-> wumpus: right, i'll do that too then.  be back to you in like 4 days :)
 615 2015-12-01T14:32:06  *** JackH has quit IRC
 616 2015-12-01T14:33:58  *** GGuyZ has joined #bitcoin-dev
 617 2015-12-01T14:35:06  *** justice has quit IRC
 618 2015-12-01T14:40:14  *** agricocb has quit IRC
 619 2015-12-01T14:41:56  *** StormDev has quit IRC
 620 2015-12-01T14:42:20  *** ParadoxSpiral has joined #bitcoin-dev
 621 2015-12-01T14:44:27  *** CodeShark_ has quit IRC
 622 2015-12-01T14:45:47  <wumpus> doesn't have to take that long?
 623 2015-12-01T14:46:30  <wumpus> if it has to create a new datadir it will have a listening port in a few seconds
 624 2015-12-01T14:49:33  <BW^-> wumpus: aha.. could you PM me your suggested bitcoind arguments, based on my current ones, using which we can see quickly if it worked?
 625 2015-12-01T14:49:42  <BW^-> maybe use /tmp as bitcoin data dir
 626 2015-12-01T14:50:36  <wumpus> just pass as little arguments as possible
 627 2015-12-01T14:51:14  <wumpus> it may be that the combination of -datadir, -conf and other things interferes in some way, but I have no idea how, but it would gie some more information
 628 2015-12-01T14:52:51  *** erasmospunk has joined #bitcoin-dev
 629 2015-12-01T14:53:07  *** benrcole has joined #bitcoin-dev
 630 2015-12-01T14:53:43  <BW^-> wumpus: i want to see first if the fact that node A is fully synced changes anything ok?
 631 2015-12-01T14:59:48  *** StormDev has joined #bitcoin-dev
 632 2015-12-01T15:03:26  *** erasmospunk has quit IRC
 633 2015-12-01T15:09:48  *** roxtrongo has quit IRC
 634 2015-12-01T15:11:53  *** roxtrongo has joined #bitcoin-dev
 635 2015-12-01T15:12:55  *** agricocb has joined #bitcoin-dev
 636 2015-12-01T15:14:27  *** flo626 has joined #bitcoin-dev
 637 2015-12-01T15:17:26  *** Guyver2 has quit IRC
 638 2015-12-01T15:21:34  *** c-cex-yuriy has joined #bitcoin-dev
 639 2015-12-01T15:25:50  *** GGuyZ has quit IRC
 640 2015-12-01T15:26:15  *** sparetire_ has joined #bitcoin-dev
 641 2015-12-01T15:28:25  *** rnvk has quit IRC
 642 2015-12-01T15:28:45  *** rnvk has joined #bitcoin-dev
 643 2015-12-01T15:29:28  *** damethos has quit IRC
 644 2015-12-01T15:33:00  *** wraithm has joined #bitcoin-dev
 645 2015-12-01T15:38:03  *** DougieBot5000 has joined #bitcoin-dev
 646 2015-12-01T15:39:44  *** humd1ng3r has quit IRC
 647 2015-12-01T15:40:33  *** benrcole has quit IRC
 648 2015-12-01T15:42:05  *** humd1ng3r has joined #bitcoin-dev
 649 2015-12-01T15:49:20  *** noobfikt has quit IRC
 650 2015-12-01T15:51:11  *** rnvk has quit IRC
 651 2015-12-01T15:53:13  *** noamh has quit IRC
 652 2015-12-01T15:55:51  *** roxtrongo has quit IRC
 653 2015-12-01T15:59:51  *** CheckDavid has quit IRC
 654 2015-12-01T16:06:35  *** StormDev has quit IRC
 655 2015-12-01T16:07:02  *** StormDev has joined #bitcoin-dev
 656 2015-12-01T16:08:36  *** erasmospunk has joined #bitcoin-dev
 657 2015-12-01T16:10:33  *** StormDev has quit IRC
 658 2015-12-01T16:10:49  *** Ahmed90 has joined #bitcoin-dev
 659 2015-12-01T16:23:51  *** atian has quit IRC
 660 2015-12-01T16:24:23  *** hashtag_ has joined #bitcoin-dev
 661 2015-12-01T16:24:44  *** atian has joined #bitcoin-dev
 662 2015-12-01T16:28:48  *** noamh has joined #bitcoin-dev
 663 2015-12-01T16:28:57  *** Guest22860 has joined #bitcoin-dev
 664 2015-12-01T16:31:03  *** LeMiner has joined #bitcoin-dev
 665 2015-12-01T16:36:13  *** Guest22860 has quit IRC
 666 2015-12-01T16:36:43  *** max__ has joined #bitcoin-dev
 667 2015-12-01T16:37:07  *** max__ is now known as Guest49224
 668 2015-12-01T16:38:18  *** lnostdal has quit IRC
 669 2015-12-01T16:40:23  *** agricocb1 has joined #bitcoin-dev
 670 2015-12-01T16:41:16  *** lnostdal has joined #bitcoin-dev
 671 2015-12-01T16:42:20  *** GGuyZ has joined #bitcoin-dev
 672 2015-12-01T16:42:25  *** Guest49224 has left #bitcoin-dev
 673 2015-12-01T16:43:26  *** agricocb has quit IRC
 674 2015-12-01T16:44:17  *** the`doctor has joined #bitcoin-dev
 675 2015-12-01T16:44:33  *** MrHodl has joined #bitcoin-dev
 676 2015-12-01T16:45:06  *** Emzy has joined #bitcoin-dev
 677 2015-12-01T16:48:40  *** wallet42 has joined #bitcoin-dev
 678 2015-12-01T16:49:52  *** atgreen_ has joined #bitcoin-dev
 679 2015-12-01T16:51:27  *** wallet42 has quit IRC
 680 2015-12-01T16:56:19  *** wallet42 has joined #bitcoin-dev
 681 2015-12-01T16:56:44  *** roxtrongo has joined #bitcoin-dev
 682 2015-12-01T16:57:01  *** ThomasV has quit IRC
 683 2015-12-01T16:57:20  *** GGuyZ has quit IRC
 684 2015-12-01T16:57:26  *** JackH has joined #bitcoin-dev
 685 2015-12-01T16:58:03  *** crescendo has quit IRC
 686 2015-12-01T17:01:10  *** roxtrongo has quit IRC
 687 2015-12-01T17:01:18  *** tantalum2 has joined #bitcoin-dev
 688 2015-12-01T17:02:15  *** afk11 has joined #bitcoin-dev
 689 2015-12-01T17:02:22  *** atgreen__ has joined #bitcoin-dev
 690 2015-12-01T17:03:59  *** tantalum has quit IRC
 691 2015-12-01T17:04:16  <andytoshi> is there an "idiomatic" way when talking over RPC to determine whether i'm talking to bitcoin or testnet (and preferably, also detect if i'm talking to alpha or some alt)
 692 2015-12-01T17:04:30  *** tantalum2 has quit IRC
 693 2015-12-01T17:04:41  <andytoshi> i've got a program that deals a lot in libsecp secret keys, which don't have version bytes, and i need to add one when talking to bitcoind
 694 2015-12-01T17:05:09  <afk11> andytoshi: getinfo returns testnet => bool in it's response, but not sure about alpha.
 695 2015-12-01T17:05:15  <kanzure> testnet addresses should be rejected, so there's that.
 696 2015-12-01T17:05:28  <afk11> you could probe the address prefix?
 697 2015-12-01T17:05:32  <andytoshi> kanzure: i like it
 698 2015-12-01T17:05:43  <andytoshi> yeah, i'll just 'validateaddress' an address with all the version bytes i know
 699 2015-12-01T17:06:01  *** crescendo has joined #bitcoin-dev
 700 2015-12-01T17:06:01  *** nivah has joined #bitcoin-dev
 701 2015-12-01T17:06:59  <kanzure> there should..... er.. we should make a more explicit mechanism.
 702 2015-12-01T17:07:05  <andytoshi> afk11: yeah, i considered getinfo but i'm pretty sure alhpa will just pretend to be testnet
 703 2015-12-01T17:07:12  <andytoshi> yup
 704 2015-12-01T17:07:43  <andytoshi> kanzure: well, arguably testnet secret keys and bitcoin secret keys are different things, and the fact that my code doesn't differentiate between them is a sort of type error
 705 2015-12-01T17:08:36  <andytoshi> kanzure: and there's also the compressed/uncompressed thing, which is a property of the keys, not the rpc daemon
 706 2015-12-01T17:08:53  <afk11> andytosh: what does alpha's addresses begin with? I'd be tempted to use getnewaddress, decode the first byte, and compare against that (if whatever alt you're working on has a unique address version)
 707 2015-12-01T17:08:58  <andytoshi> which i also don't track. my solution is "just mark everything compressed"
 708 2015-12-01T17:09:08  <kanzure> getnewaddress causes wallet address bloat- seems unnecessary
 709 2015-12-01T17:10:06  *** nivah has quit IRC
 710 2015-12-01T17:10:19  <andytoshi> afk11: heh, non-confidential addresses in alpha have the same prefix as testnet keys
 711 2015-12-01T17:10:29  <andytoshi> i'll ask on sidechains-dev if there's actually any way for me to do this..
 712 2015-12-01T17:11:41  *** Grouver has quit IRC
 713 2015-12-01T17:11:54  <andytoshi> interestingly, `getnewaddress` does work cuz alphad will give me a CT address by default
 714 2015-12-01T17:12:11  <afk11> a hypothetical getgenesisblock might help with this, but could be the same problem (some alts share block 0, but checkpoint block 1 differently)
 715 2015-12-01T17:12:19  <kanzure> what about getnetworkinfo output ("subversion")
 716 2015-12-01T17:12:49  *** binaryFateCloud has quit IRC
 717 2015-12-01T17:13:17  *** binaryFateCloud has joined #bitcoin-dev
 718 2015-12-01T17:13:25  *** tantalum has joined #bitcoin-dev
 719 2015-12-01T17:13:44  <andytoshi> afk11: that's good, but i need to talk to regtest chains during testing which'll be "same network" but different genesis
 720 2015-12-01T17:14:00  <andytoshi> hmmm kanzure
 721 2015-12-01T17:14:11  <andytoshi> actually i like that
 722 2015-12-01T17:14:26  <kanzure> alright here's the ultimate technique: send a bitcoin transaction to a known address (hardcoded in the source code). then, wait for andytoshi's server to sign a response transaction message. the response transaction will include some bytes about which network the transfer was received on.
 723 2015-12-01T17:14:35  <andytoshi> hehehe
 724 2015-12-01T17:14:59  <andytoshi> and i'll pay mechanical turk to find the response by looking at various block explorers
 725 2015-12-01T17:15:38  <kanzure> er i think regtest always has the same genesis block?
 726 2015-12-01T17:16:04  <andytoshi> kanzure: not for alpha, cuz you can change the federation public key on regtest
 727 2015-12-01T17:16:10  <andytoshi> but on bitcoin yes
 728 2015-12-01T17:16:23  <andytoshi> btw network subversion is the same for bitcoin and testnet on Core
 729 2015-12-01T17:16:40  <kanzure> well, what about for alpha?
 730 2015-12-01T17:17:08  <kanzure> regtest/testnet/mainnet can be done with getinfo, then hopefully network/client info by "subversion". but wont help with different client implementations i think.... sad.
 731 2015-12-01T17:17:31  *** meLon has quit IRC
 732 2015-12-01T17:18:42  <kanzure> what exactly is your tool doing such that a user cannot provide as input the type of network?
 733 2015-12-01T17:24:13  *** meLon has joined #bitcoin-dev
 734 2015-12-01T17:29:38  *** wraithm has quit IRC
 735 2015-12-01T17:38:01  *** ale______ has joined #bitcoin-dev
 736 2015-12-01T17:38:46  *** wangchun_ has quit IRC
 737 2015-12-01T17:39:16  *** wangchun has joined #bitcoin-dev
 738 2015-12-01T17:39:20  *** GGuyZ has joined #bitcoin-dev
 739 2015-12-01T17:39:51  *** ThomasV has joined #bitcoin-dev
 740 2015-12-01T17:41:37  *** Dyanisus has left #bitcoin-dev
 741 2015-12-01T17:43:33  <gavinandresen> andytoshi: getblockhash 0   gets you the genesis block hash
 742 2015-12-01T17:44:00  *** graingert has quit IRC
 743 2015-12-01T17:45:07  <gavinandresen> andytoshi: ... if you want to encode a public key, clever use of decoderawtransaction would work
 744 2015-12-01T17:45:40  <gavinandresen> (create a dummy transaction paying to that key, I think decoderawtransaction will give you the encoded human-readable address)
 745 2015-12-01T17:46:25  *** ParadoxSpiral_ has joined #bitcoin-dev
 746 2015-12-01T17:49:43  *** ParadoxSpiral has quit IRC
 747 2015-12-01T17:50:10  *** splix_ has quit IRC
 748 2015-12-01T17:52:18  *** MoALTz_ is now known as MoALTz
 749 2015-12-01T17:52:18  *** bendavenport has joined #bitcoin-dev
 750 2015-12-01T17:53:31  *** BashCo has quit IRC
 751 2015-12-01T17:54:23  *** melvster has quit IRC
 752 2015-12-01T17:54:53  *** xiangfu has joined #bitcoin-dev
 753 2015-12-01T17:56:33  *** benrcole has joined #bitcoin-dev
 754 2015-12-01T17:56:42  *** ale______ has quit IRC
 755 2015-12-01T17:58:53  *** alex_____ has joined #bitcoin-dev
 756 2015-12-01T17:58:54  *** benrcole has quit IRC
 757 2015-12-01T17:59:40  *** IAmNotDorian has quit IRC
 758 2015-12-01T18:01:11  *** Magicking` has quit IRC
 759 2015-12-01T18:01:45  *** benrcole has joined #bitcoin-dev
 760 2015-12-01T18:01:51  *** shurnormal has quit IRC
 761 2015-12-01T18:06:38  *** shurnormal has joined #bitcoin-dev
 762 2015-12-01T18:07:14  *** melvster has joined #bitcoin-dev
 763 2015-12-01T18:07:32  *** afk11 has quit IRC
 764 2015-12-01T18:07:39  *** benrcole has quit IRC
 765 2015-12-01T18:08:16  *** dave4925 has quit IRC
 766 2015-12-01T18:08:54  *** DigiByteDev has quit IRC
 767 2015-12-01T18:09:44  *** calibre720 has quit IRC
 768 2015-12-01T18:12:05  *** frank1e has joined #bitcoin-dev
 769 2015-12-01T18:15:00  *** GGuyZ has quit IRC
 770 2015-12-01T18:18:56  *** BashCo has joined #bitcoin-dev
 771 2015-12-01T18:22:06  *** roxtrongo has joined #bitcoin-dev
 772 2015-12-01T18:22:26  *** GGuyZ has joined #bitcoin-dev
 773 2015-12-01T18:22:56  *** eamonnw has joined #bitcoin-dev
 774 2015-12-01T18:24:26  *** neozaru has joined #bitcoin-dev
 775 2015-12-01T18:33:28  *** MrHodl has quit IRC
 776 2015-12-01T18:35:20  *** noamh has quit IRC
 777 2015-12-01T18:36:08  *** Yoghur114 has joined #bitcoin-dev
 778 2015-12-01T18:37:15  <andytoshi> kanzure: the user can provide it as input
 779 2015-12-01T18:37:21  <andytoshi> kanzure: it's annoying that the user has to
 780 2015-12-01T18:37:28  *** matsjj_ has joined #bitcoin-dev
 781 2015-12-01T18:38:30  <andytoshi> given that the user is already giving RPC settings for a daemon that knows full well what network it's on
 782 2015-12-01T18:39:03  <andytoshi> gavinandresen: i think trying 'validateaddress' on dummy addresses encoded with various network bytes will be functionally identical
 783 2015-12-01T18:39:32  *** hashtag_ has quit IRC
 784 2015-12-01T18:39:44  *** da2ce7 has quit IRC
 785 2015-12-01T18:39:59  *** da2ce7 has joined #bitcoin-dev
 786 2015-12-01T18:40:24  *** matsjj has quit IRC
 787 2015-12-01T18:45:08  *** hashtag_ has joined #bitcoin-dev
 788 2015-12-01T18:46:39  *** humd1ng3r has quit IRC
 789 2015-12-01T18:47:52  *** humd1ng3r has joined #bitcoin-dev
 790 2015-12-01T18:49:41  *** chmod755 has quit IRC
 791 2015-12-01T18:53:13  *** rnvk has joined #bitcoin-dev
 792 2015-12-01T18:53:21  *** GGuyZ has quit IRC
 793 2015-12-01T18:56:26  *** lnostdal has quit IRC
 794 2015-12-01T18:57:15  *** BW^- has quit IRC
 795 2015-12-01T18:59:42  *** matsjj_ has quit IRC
 796 2015-12-01T19:02:03  *** jaclupi has quit IRC
 797 2015-12-01T19:03:21  *** jaclupi has joined #bitcoin-dev
 798 2015-12-01T19:05:35  *** matsjj has joined #bitcoin-dev
 799 2015-12-01T19:08:02  *** melvster has quit IRC
 800 2015-12-01T19:09:00  *** shurnormal has quit IRC
 801 2015-12-01T19:10:27  *** matsjj has quit IRC
 802 2015-12-01T19:23:57  *** CoinMuncher has quit IRC
 803 2015-12-01T19:24:14  *** shurnormal has joined #bitcoin-dev
 804 2015-12-01T19:26:55  *** GGuyZ has joined #bitcoin-dev
 805 2015-12-01T19:27:06  *** Skirmant has quit IRC
 806 2015-12-01T19:27:14  *** Technocrat7 has joined #bitcoin-dev
 807 2015-12-01T19:27:39  *** tawar has quit IRC
 808 2015-12-01T19:27:58  *** nessence has joined #bitcoin-dev
 809 2015-12-01T19:28:03  *** Technocrat7 has quit IRC
 810 2015-12-01T19:28:34  *** Technocrat7 has joined #bitcoin-dev
 811 2015-12-01T19:29:48  *** Chojin_ is now known as Chojin
 812 2015-12-01T19:29:55  *** develCuy has joined #bitcoin-dev
 813 2015-12-01T19:31:15  *** Skirmant has joined #bitcoin-dev
 814 2015-12-01T19:31:22  *** tawar has joined #bitcoin-dev
 815 2015-12-01T19:33:45  *** wallet42 has quit IRC
 816 2015-12-01T19:38:25  *** Emzy_ has joined #bitcoin-dev
 817 2015-12-01T19:38:45  *** Grouver has joined #bitcoin-dev
 818 2015-12-01T19:40:37  *** roxtrongo has quit IRC
 819 2015-12-01T19:41:15  *** ThomasV has quit IRC
 820 2015-12-01T19:47:16  *** t7 has joined #bitcoin-dev
 821 2015-12-01T19:49:07  *** Guyver2 has joined #bitcoin-dev
 822 2015-12-01T19:49:51  *** brson has joined #bitcoin-dev
 823 2015-12-01T19:51:20  *** Hans-Martin has joined #bitcoin-dev
 824 2015-12-01T19:54:05  *** wraithm has joined #bitcoin-dev
 825 2015-12-01T19:54:44  *** Technocrat7 has quit IRC
 826 2015-12-01T19:56:13  *** lnostdal has joined #bitcoin-dev
 827 2015-12-01T19:57:19  *** Grouver has quit IRC
 828 2015-12-01T19:57:43  *** simba has quit IRC
 829 2015-12-01T19:58:08  *** stapler117 has quit IRC
 830 2015-12-01T19:58:31  *** stapler117 has joined #bitcoin-dev
 831 2015-12-01T20:00:45  *** kgk has joined #bitcoin-dev
 832 2015-12-01T20:01:38  *** phish_ is now known as phish
 833 2015-12-01T20:01:40  *** phish has joined #bitcoin-dev
 834 2015-12-01T20:02:55  *** Lightsword has joined #bitcoin-dev
 835 2015-12-01T20:03:41  *** Dizzle has joined #bitcoin-dev
 836 2015-12-01T20:05:39  *** c-cex-yuriy has quit IRC
 837 2015-12-01T20:06:49  *** james has joined #bitcoin-dev
 838 2015-12-01T20:07:11  *** Lightsword has quit IRC
 839 2015-12-01T20:07:12  *** james is now known as Guest76164
 840 2015-12-01T20:10:50  *** Guest76164 has quit IRC
 841 2015-12-01T20:11:21  *** blocksync has joined #bitcoin-dev
 842 2015-12-01T20:11:32  <blocksync> Hello - I have a question about Tx validation.
 843 2015-12-01T20:11:37  *** cocoBTC has joined #bitcoin-dev
 844 2015-12-01T20:12:05  <sipa> blocksync: it's hard to guess what that question is if you don't ask it!
 845 2015-12-01T20:13:02  <blocksync> :) According to https://en.bitcoin.it/wiki/Protocol_rules a broadcast Transaction must be at least 100 bytes to be valid, I have rejected TBTC http://tbtc.blockr.io/tx/info/84FB309ABBBA932C569B3011DFB7D681D5A8CD99BB01D81A693881C63F54D8C5 because of this, however it has made it into a block.
 846 2015-12-01T20:13:16  <blocksync> It is 89 bytes in size
 847 2015-12-01T20:13:28  <blocksync> Are those rules not up to date?
 848 2015-12-01T20:13:56  <sipa> they are absolutely not up to date
 849 2015-12-01T20:14:07  <sipa> i have never heard that rule
 850 2015-12-01T20:14:29  <blocksync> That sorts that out then!
 851 2015-12-01T20:14:55  <blocksync> 6. Check that nLockTime <= INT_MAX[1], size in bytes >= 100[2], and sig opcount <= 2[3]
 852 2015-12-01T20:14:57  <sipa> i wonder who put it there
 853 2015-12-01T20:15:17  <blocksync> Sorry to bother you, but which file in bitcoin/src are Tx validation rules?
 854 2015-12-01T20:15:23  <sipa> nLockTime is always less than INT_MAX, as it's an integer
 855 2015-12-01T20:16:26  <sipa> blocksync: src/main.cpp, CheckTransaction, CheckInputs, ...
 856 2015-12-01T20:16:32  <blocksync> Does it mean Signed max integer?
 857 2015-12-01T20:16:35  <blocksync> Thank you sipa
 858 2015-12-01T20:16:36  <sipa> yes
 859 2015-12-01T20:16:43  <sipa> and src/script/interpreter.cpp for the script execution
 860 2015-12-01T20:16:58  <blocksync> Thank you the script's have all been correct.
 861 2015-12-01T20:17:17  <sipa> you should probably consider using libconsensus to verify scripts
 862 2015-12-01T20:17:31  <sipa> the execution rules are extremely tricky to get exactly righ
 863 2015-12-01T20:17:50  <gmaxwell> I'd sure like there to be a 100 byte transaction size rule, but I don't believe there has ever been one.
 864 2015-12-01T20:18:04  <blocksync> "It is conceptually redundant with native functionality within libbitcoin."
 865 2015-12-01T20:18:15  <blocksync> There is so much outdated documentation around :(
 866 2015-12-01T20:18:17  <gmaxwell> (or, more explicitly a >64 byte rule)
 867 2015-12-01T20:18:27  *** melvster has joined #bitcoin-dev
 868 2015-12-01T20:18:48  <sipa> blocksync: where do you read that?
 869 2015-12-01T20:18:52  *** melvster has quit IRC
 870 2015-12-01T20:18:54  <blocksync> https://en.bitcoin.it/wiki/Libbitcoin_Consensus
 871 2015-12-01T20:19:12  <blocksync> Line 1
 872 2015-12-01T20:19:21  <sipa> not that
 873 2015-12-01T20:19:32  <sipa> please, stop using that wiki
 874 2015-12-01T20:19:39  <sipa> it's full of outdated and incorrect information
 875 2015-12-01T20:19:47  <blocksync> Ok
 876 2015-12-01T20:19:57  <sipa> libconsensus is a library that's part of Bitcoin Core's distribution
 877 2015-12-01T20:20:09  <sipa> and uses the same validation implementation as Bitcoin Core itself
 878 2015-12-01T20:20:40  *** dhill has quit IRC
 879 2015-12-01T20:20:49  <blocksync> Understood
 880 2015-12-01T20:21:26  <blocksync> Thank you for your help sipa.
 881 2015-12-01T20:22:49  <andytoshi> o.O i think that "100 bytes" thing has been there since hal created the page in 2011
 882 2015-12-01T20:23:11  <andytoshi> and i've never seen this page before
 883 2015-12-01T20:23:50  *** noamh has joined #bitcoin-dev
 884 2015-12-01T20:24:12  *** belcher has joined #bitcoin-dev
 885 2015-12-01T20:24:16  <blocksync> The main.cpp and concensus checks on Transactions are much looser than that page. I will remove some of my validation.
 886 2015-12-01T20:24:47  <andytoshi> blocksync: :/ there has been a lot of work toward cleaning up the wiki over the years but tbh i'm unsure we've made any progress
 887 2015-12-01T20:24:53  <andytoshi> as sipa says best to just pretend it doesn't exist
 888 2015-12-01T20:25:38  <andytoshi> that libbitcoin comment in particular is borderline shilling, we don't have the time or energy to be noticing things like that
 889 2015-12-01T20:25:40  <blocksync> Thank you andytoshi - one last question as all the bods seem to be in the room. Transaction fee validation - there are many interpretations, some I am accepting blockchain.info is denying, and visa versa. Do you know of a repository with good information on that subject?
 890 2015-12-01T20:25:58  <sipa> blocksync: also assume blockchain.info does not exist, if you want to learn anything about bitcoin
 891 2015-12-01T20:25:59  <andytoshi> blocksync: so, there are no hard network rules around transaction fees
 892 2015-12-01T20:26:20  <andytoshi> +1 sipa , bc.i is (deliberately, though i can't see why) misleading
 893 2015-12-01T20:26:29  <blocksync> Hmm
 894 2015-12-01T20:26:33  *** Dizzle_ has joined #bitcoin-dev
 895 2015-12-01T20:26:35  <andytoshi> blocksync: so, ordinary nodes consider fees when deciding whether or not to relay transactions
 896 2015-12-01T20:26:44  <andytoshi> while miners consider fees when deciding whether to include transactions in blocks
 897 2015-12-01T20:26:56  <andytoshi> but both of these are "local", in the sense that everybody can do whatever they feel like
 898 2015-12-01T20:27:19  <andytoshi> so it depends on what you're trying to do. if you can i'd avoid thinking about fees at all
 899 2015-12-01T20:27:20  <blocksync> I understand, however shouldnt the blockchain explorers accept all transactions too their pool as they may get accepted by a miner?
 900 2015-12-01T20:27:35  *** LeMiner2 has joined #bitcoin-dev
 901 2015-12-01T20:27:44  <andytoshi> that's sensible, though it potentially opens them up to denial-of-service attacks
 902 2015-12-01T20:28:08  <blocksync> I agree - I have 40k transactions in my TBTC pool that have not been confirmed, built up in 2 days
 903 2015-12-01T20:28:22  *** noamh has quit IRC
 904 2015-12-01T20:29:16  *** LeMiner has quit IRC
 905 2015-12-01T20:29:27  <blocksync> I think I will continue to accept all Tx into my pool and time them out after 48 hours.
 906 2015-12-01T20:29:48  *** rnvk has quit IRC
 907 2015-12-01T20:30:14  *** Dizzle has quit IRC
 908 2015-12-01T20:30:56  <andytoshi> i think that's reasonable. again, depends what you're trying to do and what your users' expectations might be. and a fixed-time timeout doesn't protect you from spam-dos attacks
 909 2015-12-01T20:31:14  <andytoshi> whereas something like requiring a minimum fee on transactions spending new outputs (which is what Core does) will
 910 2015-12-01T20:31:35  <blocksync> andytoshi - sure I will look into that.
 911 2015-12-01T20:33:20  <blocksync> sipa, andytoshi, thank you for your help in figuring out my problem. have a good evening.
 912 2015-12-01T20:33:30  *** lnostdal has quit IRC
 913 2015-12-01T20:33:56  *** brson has quit IRC
 914 2015-12-01T20:34:04  *** brson has joined #bitcoin-dev
 915 2015-12-01T20:34:17  <andytoshi> np, you too
 916 2015-12-01T20:34:28  *** blocksync has quit IRC
 917 2015-12-01T20:35:51  *** lnostdal has joined #bitcoin-dev
 918 2015-12-01T20:38:42  *** simba has joined #bitcoin-dev
 919 2015-12-01T20:39:25  *** Emzy has quit IRC
 920 2015-12-01T20:39:48  *** Emzy_ has quit IRC
 921 2015-12-01T20:40:03  *** LeMiner2 is now known as Test123
 922 2015-12-01T20:40:08  *** Emzy has joined #bitcoin-dev
 923 2015-12-01T20:40:26  *** Test123 is now known as LeMiner
 924 2015-12-01T20:40:31  *** LeMiner has joined #bitcoin-dev
 925 2015-12-01T20:41:28  *** roxtrongo has joined #bitcoin-dev
 926 2015-12-01T20:44:06  *** LeMiner has quit IRC
 927 2015-12-01T20:45:56  *** CheckDavid has joined #bitcoin-dev
 928 2015-12-01T20:46:06  *** roxtrongo has quit IRC
 929 2015-12-01T20:46:14  *** LeMiner has joined #bitcoin-dev
 930 2015-12-01T20:49:16  *** Dizzle_ has quit IRC
 931 2015-12-01T20:49:36  *** goregrind has joined #bitcoin-dev
 932 2015-12-01T20:49:53  *** Dizzle has joined #bitcoin-dev
 933 2015-12-01T20:53:02  *** damethos has joined #bitcoin-dev
 934 2015-12-01T20:53:29  *** h3xc0d3r has joined #bitcoin-dev
 935 2015-12-01T20:58:10  *** simba has quit IRC
 936 2015-12-01T20:59:04  *** GGuyZ has quit IRC
 937 2015-12-01T20:59:30  *** GGuyZ has joined #bitcoin-dev
 938 2015-12-01T21:00:20  *** GGuyZ has quit IRC
 939 2015-12-01T21:01:15  *** simba has joined #bitcoin-dev
 940 2015-12-01T21:07:23  *** damethos has quit IRC
 941 2015-12-01T21:10:45  *** nessence has quit IRC
 942 2015-12-01T21:11:22  *** nessence has joined #bitcoin-dev
 943 2015-12-01T21:11:36  *** alex_____ has quit IRC
 944 2015-12-01T21:11:53  *** alex_____ has joined #bitcoin-dev
 945 2015-12-01T21:13:33  *** alex_____ has joined #bitcoin-dev
 946 2015-12-01T21:13:39  *** Diablo-D3 has quit IRC
 947 2015-12-01T21:14:14  *** Diablo-D3 has joined #bitcoin-dev
 948 2015-12-01T21:15:58  *** nessence has quit IRC
 949 2015-12-01T21:17:33  *** Hans-Martin has quit IRC
 950 2015-12-01T21:22:18  *** tulip has joined #bitcoin-dev
 951 2015-12-01T21:27:12  *** nessence has joined #bitcoin-dev
 952 2015-12-01T21:28:58  *** atgreen__ has quit IRC
 953 2015-12-01T21:29:31  *** atgreen_ has quit IRC
 954 2015-12-01T21:31:06  *** nibor has joined #bitcoin-dev
 955 2015-12-01T21:31:45  *** nibor has quit IRC
 956 2015-12-01T21:32:00  *** xiangfu has quit IRC
 957 2015-12-01T21:32:06  *** nibor has joined #bitcoin-dev
 958 2015-12-01T21:32:11  *** h3xc0d3r has quit IRC
 959 2015-12-01T21:40:05  *** sword_smith has quit IRC
 960 2015-12-01T21:40:19  *** simba has quit IRC
 961 2015-12-01T21:41:19  *** damethos has joined #bitcoin-dev
 962 2015-12-01T21:41:23  *** sword_smith has joined #bitcoin-dev
 963 2015-12-01T21:45:18  *** alex_____ has quit IRC
 964 2015-12-01T21:46:05  *** alex_____ has joined #bitcoin-dev
 965 2015-12-01T21:51:51  *** melvster has joined #bitcoin-dev
 966 2015-12-01T21:53:39  *** metalcamp has quit IRC
 967 2015-12-01T21:56:37  *** tulip has quit IRC
 968 2015-12-01T21:58:27  *** jtoomim has quit IRC
 969 2015-12-01T22:00:44  *** nessence has quit IRC
 970 2015-12-01T22:01:13  *** nessence has joined #bitcoin-dev
 971 2015-12-01T22:01:22  *** ParadoxSpiral_ has quit IRC
 972 2015-12-01T22:01:54  *** hashtag_ has quit IRC
 973 2015-12-01T22:05:34  *** bsm117532 has quit IRC
 974 2015-12-01T22:05:48  *** nessence has quit IRC
 975 2015-12-01T22:05:49  *** zookolaptop has joined #bitcoin-dev
 976 2015-12-01T22:06:10  *** GGuyZ has joined #bitcoin-dev
 977 2015-12-01T22:06:24  *** justanotheruser has quit IRC
 978 2015-12-01T22:06:45  *** roxtrongo has joined #bitcoin-dev
 979 2015-12-01T22:09:09  *** wraithm has quit IRC
 980 2015-12-01T22:11:28  *** tulip has joined #bitcoin-dev
 981 2015-12-01T22:12:14  *** Meeh has joined #bitcoin-dev
 982 2015-12-01T22:15:57  *** lecusemb1e has quit IRC
 983 2015-12-01T22:16:04  *** lecusemble has joined #bitcoin-dev
 984 2015-12-01T22:18:32  *** benrcole has joined #bitcoin-dev
 985 2015-12-01T22:22:39  *** instagibbs has quit IRC
 986 2015-12-01T22:24:22  *** Guyver2 has quit IRC
 987 2015-12-01T22:25:32  *** instagibbs has joined #bitcoin-dev
 988 2015-12-01T22:25:38  *** justanotheruser has joined #bitcoin-dev
 989 2015-12-01T22:28:49  *** benrcole has quit IRC
 990 2015-12-01T22:28:51  *** neozaru has quit IRC
 991 2015-12-01T22:29:40  *** patcon has joined #bitcoin-dev
 992 2015-12-01T22:29:42  *** kgk has quit IRC
 993 2015-12-01T22:33:13  *** kgk has joined #bitcoin-dev
 994 2015-12-01T22:33:29  *** arubi has quit IRC
 995 2015-12-01T22:39:50  *** arubi has joined #bitcoin-dev
 996 2015-12-01T22:42:55  *** won9 has joined #bitcoin-dev
 997 2015-12-01T22:44:07  *** robbak_ has quit IRC
 998 2015-12-01T22:45:02  *** robbak_ has joined #bitcoin-dev
 999 2015-12-01T22:45:12  *** wraithm has joined #bitcoin-dev
1000 2015-12-01T22:48:46  *** arubi_ has joined #bitcoin-dev
1001 2015-12-01T22:50:00  *** arubi has quit IRC
1002 2015-12-01T22:51:40  *** metalcamp has joined #bitcoin-dev
1003 2015-12-01T22:56:31  *** Emzy has quit IRC
1004 2015-12-01T22:59:32  *** GGuyZ_ has joined #bitcoin-dev
1005 2015-12-01T22:59:33  *** GGuyZ has quit IRC
1006 2015-12-01T22:59:33  *** GGuyZ_ is now known as GGuyZ
1007 2015-12-01T23:01:35  *** simba has joined #bitcoin-dev
1008 2015-12-01T23:02:36  *** bsm117532 has joined #bitcoin-dev
1009 2015-12-01T23:08:18  *** tantalum has quit IRC
1010 2015-12-01T23:08:29  *** weems has quit IRC
1011 2015-12-01T23:08:58  *** weems has joined #bitcoin-dev
1012 2015-12-01T23:13:40  *** noamh has joined #bitcoin-dev
1013 2015-12-01T23:18:14  *** noamh has quit IRC
1014 2015-12-01T23:20:21  *** damethos has quit IRC
1015 2015-12-01T23:22:30  *** zookolaptop has quit IRC
1016 2015-12-01T23:23:51  *** metalcamp_ has joined #bitcoin-dev
1017 2015-12-01T23:25:32  *** metalcamp has quit IRC
1018 2015-12-01T23:29:57  *** ThomasV has joined #bitcoin-dev
1019 2015-12-01T23:30:43  *** jtoomim has joined #bitcoin-dev
1020 2015-12-01T23:31:40  *** GGuyZ_ has joined #bitcoin-dev
1021 2015-12-01T23:31:41  *** GGuyZ has quit IRC
1022 2015-12-01T23:31:41  *** GGuyZ_ is now known as GGuyZ
1023 2015-12-01T23:32:02  *** metalcamp_ has quit IRC
1024 2015-12-01T23:32:26  *** metalcamp has joined #bitcoin-dev
1025 2015-12-01T23:37:40  *** Lightsword has joined #bitcoin-dev
1026 2015-12-01T23:39:38  *** Dizzle has quit IRC
1027 2015-12-01T23:40:47  *** cocoBTC has quit IRC
1028 2015-12-01T23:41:35  *** amiller_ has quit IRC
1029 2015-12-01T23:42:02  *** Ahmed90 has quit IRC
1030 2015-12-01T23:42:42  *** Guest46010 has joined #bitcoin-dev
1031 2015-12-01T23:44:15  *** hashtag_ has joined #bitcoin-dev
1032 2015-12-01T23:45:18  *** ThomasV has quit IRC
1033 2015-12-01T23:47:35  *** atgreen__ has joined #bitcoin-dev
1034 2015-12-01T23:47:38  *** metalcamp has quit IRC
1035 2015-12-01T23:49:02  *** lnostdal has quit IRC
1036 2015-12-01T23:49:26  *** atgreen_ has joined #bitcoin-dev
1037 2015-12-01T23:49:58  *** lnostdal has joined #bitcoin-dev
1038 2015-12-01T23:54:10  *** atgreen__ has quit IRC
1039 2015-12-01T23:54:34  *** atgreen_ has quit IRC
1040 2015-12-01T23:54:55  *** DougieBot5000 has quit IRC