1 2018-09-08T00:10:28  *** Victorsueca has quit IRC
  2 2018-09-08T00:11:11  *** jrayhawk has joined #bitcoin-core-dev
  3 2018-09-08T00:11:40  *** Victorsueca has joined #bitcoin-core-dev
  4 2018-09-08T00:15:24  *** drexl has quit IRC
  5 2018-09-08T00:30:46  *** IGHOR has quit IRC
  6 2018-09-08T00:32:58  *** IGHOR has joined #bitcoin-core-dev
  7 2018-09-08T01:20:21  *** grubles has quit IRC
  8 2018-09-08T01:23:04  *** profmac has quit IRC
  9 2018-09-08T01:30:22  *** masonicboom has quit IRC
 10 2018-09-08T01:46:56  *** Chris_Stewart_5 has joined #bitcoin-core-dev
 11 2018-09-08T02:05:04  <Chris_Stewart_5> wumpus: It might be best to just merge #12775 and do the build stuff in a subsequent PR
 12 2018-09-08T02:05:05  <gribble> https://github.com/bitcoin/bitcoin/issues/12775 | Integration of property based testing into Bitcoin Core by Christewart · Pull Request #12775 · bitcoin/bitcoin · GitHub
 13 2018-09-08T02:05:11  *** masonicboom has joined #bitcoin-core-dev
 14 2018-09-08T02:08:25  <gmaxwell> jl2012: !! is an ideomatic way to covert a value into 0/1 in C/C++
 15 2018-09-08T02:08:59  <gmaxwell> (esp pre-C99 when there wasn't a native bool type)
 16 2018-09-08T02:09:32  *** profmac has joined #bitcoin-core-dev
 17 2018-09-08T02:09:48  *** masonicboom has quit IRC
 18 2018-09-08T02:11:54  *** grubles has joined #bitcoin-core-dev
 19 2018-09-08T03:13:08  <wumpus> yes, unfortunately !! is ideomatic C...
 20 2018-09-08T03:13:17  <wumpus> Chris_Stewart_5: ok!
 21 2018-09-08T03:14:07  <wumpus> C allows you even to make mistakes with booleans, it stays baffling how people get shit done with it
 22 2018-09-08T03:18:03  <gmaxwell> well where you need a value to become a 0 or 1 (e.g. turning a cast into a value for a logical operation) I don't think !! is worse than sticking a bool cast in the middle of a statement.
 23 2018-09-08T03:19:48  *** jhfrontz has quit IRC
 24 2018-09-08T03:19:57  <wumpus> I'd say bool(x) conveys the meaning slightly better than !!x
 25 2018-09-08T03:21:03  <sipa> but it's 4 characters longer!!
 26 2018-09-08T03:21:05  <sipa> i mean
 27 2018-09-08T03:21:14  <sipa> but it's 4 characters longerbool()
 28 2018-09-08T03:21:19  <wumpus> ahhhhhhhhh
 29 2018-09-08T03:21:59  <wumpus> true, I mean bool(382472487)
 30 2018-09-08T03:22:25  <sipa> aha
 31 2018-09-08T03:23:18  *** Krellan has quit IRC
 32 2018-09-08T03:27:09  *** Chris_Stewart_5 has quit IRC
 33 2018-09-08T03:28:11  <wumpus> at least it's defined, they could have done "it's implementation dependent, on some architectures it will be 0 as true and !=0 as false", after all some architectures might want to optimize for bash!
 34 2018-09-08T03:44:57  *** profmac has quit IRC
 35 2018-09-08T03:57:54  *** profmac has joined #bitcoin-core-dev
 36 2018-09-08T04:07:25  *** Chris_Stewart_5 has joined #bitcoin-core-dev
 37 2018-09-08T04:09:09  *** profmac has quit IRC
 38 2018-09-08T04:23:03  <luke-jr> wumpus: exit codes aren't booleans though
 39 2018-09-08T04:25:19  <wumpus> luke-jr: sure, exit codes aren't, but it does treat all boolean operations as if working with exit codes
 40 2018-09-08T04:25:29  <gmaxwell> XKCD386' = someone's /joke/ was wrong on the internet.
 41 2018-09-08T04:25:45  <wumpus> hehe
 42 2018-09-08T04:25:55  <sipa> Munroe's Law?
 43 2018-09-08T04:26:36  <luke-jr> XD
 44 2018-09-08T04:40:31  *** Chris_Stewart_5 has quit IRC
 45 2018-09-08T05:00:40  *** masonicboom has joined #bitcoin-core-dev
 46 2018-09-08T05:01:03  *** profmac has joined #bitcoin-core-dev
 47 2018-09-08T05:05:04  *** masonicboom has quit IRC
 48 2018-09-08T05:06:04  *** ppaqmj has joined #bitcoin-core-dev
 49 2018-09-08T05:35:24  *** AaronvanW has joined #bitcoin-core-dev
 50 2018-09-08T05:54:47  *** masonicboom has joined #bitcoin-core-dev
 51 2018-09-08T05:57:57  *** AaronvanW has quit IRC
 52 2018-09-08T05:59:09  *** masonicboom has quit IRC
 53 2018-09-08T06:33:27  *** Rootsudo has joined #bitcoin-core-dev
 54 2018-09-08T06:46:20  *** Krellan has joined #bitcoin-core-dev
 55 2018-09-08T06:49:12  *** masonicboom has joined #bitcoin-core-dev
 56 2018-09-08T06:49:36  *** Krellan has joined #bitcoin-core-dev
 57 2018-09-08T06:53:23  *** masonicboom has quit IRC
 58 2018-09-08T06:53:27  *** RubenSomsen has joined #bitcoin-core-dev
 59 2018-09-08T07:14:47  *** Zenton has quit IRC
 60 2018-09-08T07:43:29  *** masonicboom has joined #bitcoin-core-dev
 61 2018-09-08T07:48:03  *** masonicboom has quit IRC
 62 2018-09-08T08:14:18  *** ppaqmj has quit IRC
 63 2018-09-08T08:34:07  *** csknk has joined #bitcoin-core-dev
 64 2018-09-08T08:38:01  *** masonicboom has joined #bitcoin-core-dev
 65 2018-09-08T08:40:14  *** phwalkr has joined #bitcoin-core-dev
 66 2018-09-08T08:40:53  *** Jmabsd has joined #bitcoin-core-dev
 67 2018-09-08T08:42:24  *** masonicboom has quit IRC
 68 2018-09-08T08:54:18  *** phwalkr has quit IRC
 69 2018-09-08T08:58:17  *** miknotauro has joined #bitcoin-core-dev
 70 2018-09-08T09:02:08  <Jmabsd> <crosspost from #bitcoin, please respond at #bitcoin, sorry for spam>Can I add witness data to a transaction input that is not necessarily segwit and where the witness data i'd add is unrelated to the output the input spends?</spam>
 71 2018-09-08T09:48:27  *** Jmabsd has quit IRC
 72 2018-09-08T09:51:42  *** giaki3003 has joined #bitcoin-core-dev
 73 2018-09-08T09:52:00  <giaki3003> Hello! I'll try and not lose connection this time :D
 74 2018-09-08T09:52:12  <giaki3003> So 2 things, thanks for bearing with me
 75 2018-09-08T09:52:53  <giaki3003> gdb doesn't run dbg files from Gitian, it complains they are of incorrect format. Any renaming I try doesn't help
 76 2018-09-08T09:53:41  <giaki3003> And... Anyone know of a pool software which runs on 0.16? Rpc calls changes and Coiniumserv, Nomp, Unomp, mpos and so on are all broken
 77 2018-09-08T09:59:20  *** ppaqmj has joined #bitcoin-core-dev
 78 2018-09-08T10:07:13  <wumpus> strange, maybe an incompatible version of gdb
 79 2018-09-08T10:07:54  <wumpus> they did work at some point at least
 80 2018-09-08T10:46:39  *** Jmabsd has joined #bitcoin-core-dev
 81 2018-09-08T10:47:29  <giaki3003> Which version of gdb do you recommend? I might as well try with visual studio
 82 2018-09-08T10:53:06  *** giaki3003 has quit IRC
 83 2018-09-08T11:01:26  *** SopaXorzTaker has joined #bitcoin-core-dev
 84 2018-09-08T11:02:58  *** csknk has quit IRC
 85 2018-09-08T11:20:19  *** meshcollider_ has joined #bitcoin-core-dev
 86 2018-09-08T11:25:13  <meshcollider> sipa: not sure if you've said anything about it already but what do you think of boneh's multisig paper, just announced to be in asiacrypt18
 87 2018-09-08T11:28:35  *** Zenton has joined #bitcoin-core-dev
 88 2018-09-08T11:33:20  *** masonicboom has joined #bitcoin-core-dev
 89 2018-09-08T11:37:57  *** masonicboom has quit IRC
 90 2018-09-08T11:42:51  *** Guyver2 has joined #bitcoin-core-dev
 91 2018-09-08T11:48:48  *** harrigan has quit IRC
 92 2018-09-08T12:06:54  *** drexl has joined #bitcoin-core-dev
 93 2018-09-08T12:07:39  *** TheHoliestRoger has quit IRC
 94 2018-09-08T12:07:49  *** TheHoliestRoger has joined #bitcoin-core-dev
 95 2018-09-08T12:10:21  *** Chris_Stewart_5 has joined #bitcoin-core-dev
 96 2018-09-08T12:18:52  *** giaki3003_2 has joined #bitcoin-core-dev
 97 2018-09-08T12:22:23  *** csknk has joined #bitcoin-core-dev
 98 2018-09-08T12:23:17  *** giaki3003_2 has quit IRC
 99 2018-09-08T12:33:40  *** Chris_Stewart_5 has quit IRC
100 2018-09-08T12:37:51  *** hebasto has joined #bitcoin-core-dev
101 2018-09-08T12:41:01  *** Chris_Stewart_5 has joined #bitcoin-core-dev
102 2018-09-08T13:03:44  *** miknotauro has quit IRC
103 2018-09-08T13:07:54  *** Atourist has joined #bitcoin-core-dev
104 2018-09-08T13:16:38  *** Krellan has quit IRC
105 2018-09-08T13:17:07  *** Chris_Stewart_5 has quit IRC
106 2018-09-08T13:18:12  *** Krellan has joined #bitcoin-core-dev
107 2018-09-08T13:25:19  *** drexl has quit IRC
108 2018-09-08T13:27:58  *** ExtraCrispy has joined #bitcoin-core-dev
109 2018-09-08T13:44:25  *** giaki3003_2 has joined #bitcoin-core-dev
110 2018-09-08T14:04:38  *** Rootsudo has quit IRC
111 2018-09-08T14:11:28  *** Victorsueca has quit IRC
112 2018-09-08T14:12:41  *** Victorsueca has joined #bitcoin-core-dev
113 2018-09-08T14:14:44  *** drexl has joined #bitcoin-core-dev
114 2018-09-08T14:21:14  *** JackH has quit IRC
115 2018-09-08T14:21:40  <sipa> meshcollider: if you're talking about the okamoto scheme, making the signatures larger just to save an interaction round at signing seems like a bad tradeoff
116 2018-09-08T14:28:45  *** masonicboom has joined #bitcoin-core-dev
117 2018-09-08T14:32:06  *** owowo has quit IRC
118 2018-09-08T14:32:58  *** masonicboom has quit IRC
119 2018-09-08T14:33:51  *** owowo has joined #bitcoin-core-dev
120 2018-09-08T14:40:04  *** meshcollider_ has quit IRC
121 2018-09-08T15:12:21  *** mariorz has joined #bitcoin-core-dev
122 2018-09-08T15:23:09  *** masonicboom has joined #bitcoin-core-dev
123 2018-09-08T15:24:06  *** Krellan has quit IRC
124 2018-09-08T15:24:54  *** Krellan has joined #bitcoin-core-dev
125 2018-09-08T15:27:34  *** masonicboom has quit IRC
126 2018-09-08T15:32:48  *** profmac has quit IRC
127 2018-09-08T15:45:46  <giaki3003_2> Just tried changing gdb version, same issue. Which do you usually use?
128 2018-09-08T15:45:57  <giaki3003_2> Also any info on a supported pool software?
129 2018-09-08T15:49:20  <jl2012> Jmabsd: no. An input may have witness only if it is native segwit or P2SH-segwit (see BIP141)
130 2018-09-08T15:54:25  <sipa> or put differently, its witness must be empty otherwise
131 2018-09-08T15:54:51  <gmaxwell> this got answered hors ago in #bitcoin.
132 2018-09-08T15:55:40  <sipa> ok
133 2018-09-08T16:04:01  *** Jmabsd has quit IRC
134 2018-09-08T16:22:00  *** jarthur has joined #bitcoin-core-dev
135 2018-09-08T16:22:05  *** AaronvanW has joined #bitcoin-core-dev
136 2018-09-08T16:22:40  *** AaronvanW has quit IRC
137 2018-09-08T16:29:27  *** hebasto has quit IRC
138 2018-09-08T16:41:19  *** giaki3003_2 has quit IRC
139 2018-09-08T17:38:55  *** jarthur has quit IRC
140 2018-09-08T17:47:22  <pierre_rochard> has anyone tried their hand at mocking CClientUIInterface to capture calls to uiInterface in unit tests?
141 2018-09-08T18:03:17  *** profmac has joined #bitcoin-core-dev
142 2018-09-08T18:03:26  *** profmac_ has joined #bitcoin-core-dev
143 2018-09-08T18:03:28  *** profmac_ has quit IRC
144 2018-09-08T18:27:27  *** drexl has quit IRC
145 2018-09-08T18:55:21  *** rex4539 has joined #bitcoin-core-dev
146 2018-09-08T18:57:18  *** Krellan has quit IRC
147 2018-09-08T19:02:21  *** Krellan has joined #bitcoin-core-dev
148 2018-09-08T19:06:36  *** csknk has quit IRC
149 2018-09-08T19:08:37  *** miknotauro has joined #bitcoin-core-dev
150 2018-09-08T19:11:03  *** adiabat has quit IRC
151 2018-09-08T19:14:14  *** miknotauro has quit IRC
152 2018-09-08T19:15:05  *** Guyver2 has quit IRC
153 2018-09-08T19:28:07  *** justanotheruser has quit IRC
154 2018-09-08T19:45:54  *** lnostdal has quit IRC
155 2018-09-08T19:47:34  *** justanotheruser has joined #bitcoin-core-dev
156 2018-09-08T20:04:25  *** masonicboom has joined #bitcoin-core-dev
157 2018-09-08T20:05:48  *** Atourist has quit IRC
158 2018-09-08T20:06:02  *** SopaXorzTaker has quit IRC
159 2018-09-08T20:08:01  <phantomcircuit> so are we trying to match the style in the surrounding code or trying to match a new spec?
160 2018-09-08T20:08:41  *** profmac has quit IRC
161 2018-09-08T20:09:09  *** profmac has joined #bitcoin-core-dev
162 2018-09-08T20:12:44  <sipa> phantomcircuit: that's explicitly mentioned in the developer notes :)
163 2018-09-08T20:13:14  <sipa> don't try to mimick surrounding code
164 2018-09-08T20:13:56  <sipa> though you can use old style variable/class names if you'd otherwise need to rename things in unrelated parts of the code
165 2018-09-08T20:20:53  *** lnostdal has joined #bitcoin-core-dev
166 2018-09-08T20:48:11  <gmaxwell> mostly just update what you can without expanding the size of your diff.
167 2018-09-08T21:01:21  <jl2012> if I want to know a uint256 is less than (<) another uint256, should I first convert them with UintToArith256? I find that I can directly use < to compare two uint256
168 2018-09-08T21:03:38  *** masonicboom has quit IRC
169 2018-09-08T21:04:27  *** owowo has quit IRC
170 2018-09-08T21:04:52  *** masonicboom has joined #bitcoin-core-dev
171 2018-09-08T21:05:02  <sipa> jl2012: do you want the first byte or the last byte to be more significant?
172 2018-09-08T21:05:48  *** masonicboom has quit IRC
173 2018-09-08T21:05:54  *** masonicb_ has joined #bitcoin-core-dev
174 2018-09-08T21:07:09  <jl2012> arith_uint256 treats the last byte more significant?
175 2018-09-08T21:09:07  <sipa> jl2012: uint256 is essentially a byte array; comparing them will sort them lexicograohically
176 2018-09-08T21:09:33  *** owowo has joined #bitcoin-core-dev
177 2018-09-08T21:09:37  <sipa> arith_uint256 treats its data as a little-endian encoded number, and comparing those will first compare the last byte
178 2018-09-08T21:10:30  *** masonicb_ has quit IRC
179 2018-09-08T21:14:07  <jl2012> sipa: uint256 uses memcmp, so the first byte is more significant?
180 2018-09-08T21:17:12  <sipa> indeed, lexicographic ordering
181 2018-09-08T21:31:00  *** drexl has joined #bitcoin-core-dev
182 2018-09-08T21:45:58  *** masonicboom has joined #bitcoin-core-dev
183 2018-09-08T22:10:04  *** qrestlove has quit IRC
184 2018-09-08T22:10:31  <CubicEarth> Lightning implementations would have an easier time being compatible with pruned nodes if the lightning node could prohibit bitcoind from pruning above a height it set
185 2018-09-08T22:10:54  <CubicEarth> it seems this would be a useful RPC ... DoNotPruneAbove
186 2018-09-08T22:12:30  <sipa> CubicEarth: there is an RPC for manual pruning
187 2018-09-08T22:19:49  <CubicEarth> I suppose prunblockchain is almost identical to what I was thinking...
188 2018-09-08T22:24:36  <CubicEarth> it would be cool to have bitcoin not prune any blocks unless manually instructed, and yet also respect a storage limitation. So until manual pruning happened, it wouldn't download new blocks beyond some point.
189 2018-09-08T22:27:29  <gmaxwell> it'll shut down when it runs out of space...
190 2018-09-08T22:29:31  <CubicEarth> well that's good... but it'd be nicer not to fill the disk
191 2018-09-08T22:33:18  <CubicEarth> just thinking of ways to play nice with lightning... pruning allows an easy way to use just a portion of disk space
192 2018-09-08T22:33:57  <CubicEarth> manual pruning ensure blocks remain available for lightning to inspect
193 2018-09-08T22:34:34  <CubicEarth> but if lightning isn't started at same time, bitcoin will go ahead and fill all space it can find
194 2018-09-08T22:51:06  *** masonicboom has quit IRC
195 2018-09-08T22:51:42  *** cisba has joined #bitcoin-core-dev
196 2018-09-08T22:52:22  *** masonicboom has joined #bitcoin-core-dev
197 2018-09-08T22:55:32  *** masonicb_ has joined #bitcoin-core-dev
198 2018-09-08T22:56:39  *** masonicboom has quit IRC
199 2018-09-08T22:59:34  *** masonicb_ has quit IRC
200 2018-09-08T23:11:07  *** Krellan has quit IRC
201 2018-09-08T23:11:59  *** Krellan has joined #bitcoin-core-dev
202 2018-09-08T23:13:43  *** owowo has quit IRC
203 2018-09-08T23:22:15  *** owowo has joined #bitcoin-core-dev
204 2018-09-08T23:55:27  *** cisba has quit IRC