12018-09-08T00:10:28 *** Victorsueca has quit IRC
22018-09-08T00:11:11 *** jrayhawk has joined #bitcoin-core-dev
32018-09-08T00:11:40 *** Victorsueca has joined #bitcoin-core-dev
42018-09-08T00:15:24 *** drexl has quit IRC
52018-09-08T00:30:46 *** IGHOR has quit IRC
62018-09-08T00:32:58 *** IGHOR has joined #bitcoin-core-dev
72018-09-08T01:20:21 *** grubles has quit IRC
82018-09-08T01:23:04 *** profmac has quit IRC
92018-09-08T01:30:22 *** masonicboom has quit IRC
102018-09-08T01:46:56 *** Chris_Stewart_5 has joined #bitcoin-core-dev
112018-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
122018-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
132018-09-08T02:05:11 *** masonicboom has joined #bitcoin-core-dev
142018-09-08T02:08:25 <gmaxwell> jl2012: !! is an ideomatic way to covert a value into 0/1 in C/C++
152018-09-08T02:08:59 <gmaxwell> (esp pre-C99 when there wasn't a native bool type)
162018-09-08T02:09:32 *** profmac has joined #bitcoin-core-dev
172018-09-08T02:09:48 *** masonicboom has quit IRC
182018-09-08T02:11:54 *** grubles has joined #bitcoin-core-dev
192018-09-08T03:13:08 <wumpus> yes, unfortunately !! is ideomatic C...
202018-09-08T03:13:17 <wumpus> Chris_Stewart_5: ok!
212018-09-08T03:14:07 <wumpus> C allows you even to make mistakes with booleans, it stays baffling how people get shit done with it
222018-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.
232018-09-08T03:19:48 *** jhfrontz has quit IRC
242018-09-08T03:19:57 <wumpus> I'd say bool(x) conveys the meaning slightly better than !!x
252018-09-08T03:21:03 <sipa> but it's 4 characters longer!!
262018-09-08T03:21:05 <sipa> i mean
272018-09-08T03:21:14 <sipa> but it's 4 characters longerbool()
282018-09-08T03:21:19 <wumpus> ahhhhhhhhh
292018-09-08T03:21:59 <wumpus> true, I mean bool(382472487)
302018-09-08T03:22:25 <sipa> aha
312018-09-08T03:23:18 *** Krellan has quit IRC
322018-09-08T03:27:09 *** Chris_Stewart_5 has quit IRC
332018-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!
342018-09-08T03:44:57 *** profmac has quit IRC
352018-09-08T03:57:54 *** profmac has joined #bitcoin-core-dev
362018-09-08T04:07:25 *** Chris_Stewart_5 has joined #bitcoin-core-dev
372018-09-08T04:09:09 *** profmac has quit IRC
382018-09-08T04:23:03 <luke-jr> wumpus: exit codes aren't booleans though
392018-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
402018-09-08T04:25:29 <gmaxwell> XKCD386' = someone's /joke/ was wrong on the internet.
412018-09-08T04:25:45 <wumpus> hehe
422018-09-08T04:25:55 <sipa> Munroe's Law?
432018-09-08T04:26:36 <luke-jr> XD
442018-09-08T04:40:31 *** Chris_Stewart_5 has quit IRC
452018-09-08T05:00:40 *** masonicboom has joined #bitcoin-core-dev
462018-09-08T05:01:03 *** profmac has joined #bitcoin-core-dev
472018-09-08T05:05:04 *** masonicboom has quit IRC
482018-09-08T05:06:04 *** ppaqmj has joined #bitcoin-core-dev
492018-09-08T05:35:24 *** AaronvanW has joined #bitcoin-core-dev
502018-09-08T05:54:47 *** masonicboom has joined #bitcoin-core-dev
512018-09-08T05:57:57 *** AaronvanW has quit IRC
522018-09-08T05:59:09 *** masonicboom has quit IRC
532018-09-08T06:33:27 *** Rootsudo has joined #bitcoin-core-dev
542018-09-08T06:46:20 *** Krellan has joined #bitcoin-core-dev
552018-09-08T06:49:12 *** masonicboom has joined #bitcoin-core-dev
562018-09-08T06:49:36 *** Krellan has joined #bitcoin-core-dev
572018-09-08T06:53:23 *** masonicboom has quit IRC
582018-09-08T06:53:27 *** RubenSomsen has joined #bitcoin-core-dev
592018-09-08T07:14:47 *** Zenton has quit IRC
602018-09-08T07:43:29 *** masonicboom has joined #bitcoin-core-dev
612018-09-08T07:48:03 *** masonicboom has quit IRC
622018-09-08T08:14:18 *** ppaqmj has quit IRC
632018-09-08T08:34:07 *** csknk has joined #bitcoin-core-dev
642018-09-08T08:38:01 *** masonicboom has joined #bitcoin-core-dev
652018-09-08T08:40:14 *** phwalkr has joined #bitcoin-core-dev
662018-09-08T08:40:53 *** Jmabsd has joined #bitcoin-core-dev
672018-09-08T08:42:24 *** masonicboom has quit IRC
682018-09-08T08:54:18 *** phwalkr has quit IRC
692018-09-08T08:58:17 *** miknotauro has joined #bitcoin-core-dev
702018-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>
712018-09-08T09:48:27 *** Jmabsd has quit IRC
722018-09-08T09:51:42 *** giaki3003 has joined #bitcoin-core-dev
732018-09-08T09:52:00 <giaki3003> Hello! I'll try and not lose connection this time :D
742018-09-08T09:52:12 <giaki3003> So 2 things, thanks for bearing with me
752018-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
762018-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
772018-09-08T09:59:20 *** ppaqmj has joined #bitcoin-core-dev
782018-09-08T10:07:13 <wumpus> strange, maybe an incompatible version of gdb
792018-09-08T10:07:54 <wumpus> they did work at some point at least
802018-09-08T10:46:39 *** Jmabsd has joined #bitcoin-core-dev
812018-09-08T10:47:29 <giaki3003> Which version of gdb do you recommend? I might as well try with visual studio
822018-09-08T10:53:06 *** giaki3003 has quit IRC
832018-09-08T11:01:26 *** SopaXorzTaker has joined #bitcoin-core-dev
842018-09-08T11:02:58 *** csknk has quit IRC
852018-09-08T11:20:19 *** meshcollider_ has joined #bitcoin-core-dev
862018-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
872018-09-08T11:28:35 *** Zenton has joined #bitcoin-core-dev
882018-09-08T11:33:20 *** masonicboom has joined #bitcoin-core-dev
892018-09-08T11:37:57 *** masonicboom has quit IRC
902018-09-08T11:42:51 *** Guyver2 has joined #bitcoin-core-dev
912018-09-08T11:48:48 *** harrigan has quit IRC
922018-09-08T12:06:54 *** drexl has joined #bitcoin-core-dev
932018-09-08T12:07:39 *** TheHoliestRoger has quit IRC
942018-09-08T12:07:49 *** TheHoliestRoger has joined #bitcoin-core-dev
952018-09-08T12:10:21 *** Chris_Stewart_5 has joined #bitcoin-core-dev
962018-09-08T12:18:52 *** giaki3003_2 has joined #bitcoin-core-dev
972018-09-08T12:22:23 *** csknk has joined #bitcoin-core-dev
982018-09-08T12:23:17 *** giaki3003_2 has quit IRC
992018-09-08T12:33:40 *** Chris_Stewart_5 has quit IRC
1002018-09-08T12:37:51 *** hebasto has joined #bitcoin-core-dev
1012018-09-08T12:41:01 *** Chris_Stewart_5 has joined #bitcoin-core-dev
1022018-09-08T13:03:44 *** miknotauro has quit IRC
1032018-09-08T13:07:54 *** Atourist has joined #bitcoin-core-dev
1042018-09-08T13:16:38 *** Krellan has quit IRC
1052018-09-08T13:17:07 *** Chris_Stewart_5 has quit IRC
1062018-09-08T13:18:12 *** Krellan has joined #bitcoin-core-dev
1072018-09-08T13:25:19 *** drexl has quit IRC
1082018-09-08T13:27:58 *** ExtraCrispy has joined #bitcoin-core-dev
1092018-09-08T13:44:25 *** giaki3003_2 has joined #bitcoin-core-dev
1102018-09-08T14:04:38 *** Rootsudo has quit IRC
1112018-09-08T14:11:28 *** Victorsueca has quit IRC
1122018-09-08T14:12:41 *** Victorsueca has joined #bitcoin-core-dev
1132018-09-08T14:14:44 *** drexl has joined #bitcoin-core-dev
1142018-09-08T14:21:14 *** JackH has quit IRC
1152018-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
1162018-09-08T14:28:45 *** masonicboom has joined #bitcoin-core-dev
1172018-09-08T14:32:06 *** owowo has quit IRC
1182018-09-08T14:32:58 *** masonicboom has quit IRC
1192018-09-08T14:33:51 *** owowo has joined #bitcoin-core-dev
1202018-09-08T14:40:04 *** meshcollider_ has quit IRC
1212018-09-08T15:12:21 *** mariorz has joined #bitcoin-core-dev
1222018-09-08T15:23:09 *** masonicboom has joined #bitcoin-core-dev
1232018-09-08T15:24:06 *** Krellan has quit IRC
1242018-09-08T15:24:54 *** Krellan has joined #bitcoin-core-dev
1252018-09-08T15:27:34 *** masonicboom has quit IRC
1262018-09-08T15:32:48 *** profmac has quit IRC
1272018-09-08T15:45:46 <giaki3003_2> Just tried changing gdb version, same issue. Which do you usually use?
1282018-09-08T15:45:57 <giaki3003_2> Also any info on a supported pool software?
1292018-09-08T15:49:20 <jl2012> Jmabsd: no. An input may have witness only if it is native segwit or P2SH-segwit (see BIP141)
1302018-09-08T15:54:25 <sipa> or put differently, its witness must be empty otherwise
1312018-09-08T15:54:51 <gmaxwell> this got answered hors ago in #bitcoin.
1322018-09-08T15:55:40 <sipa> ok
1332018-09-08T16:04:01 *** Jmabsd has quit IRC
1342018-09-08T16:22:00 *** jarthur has joined #bitcoin-core-dev
1352018-09-08T16:22:05 *** AaronvanW has joined #bitcoin-core-dev
1362018-09-08T16:22:40 *** AaronvanW has quit IRC
1372018-09-08T16:29:27 *** hebasto has quit IRC
1382018-09-08T16:41:19 *** giaki3003_2 has quit IRC
1392018-09-08T17:38:55 *** jarthur has quit IRC
1402018-09-08T17:47:22 <pierre_rochard> has anyone tried their hand at mocking CClientUIInterface to capture calls to uiInterface in unit tests?
1412018-09-08T18:03:17 *** profmac has joined #bitcoin-core-dev
1422018-09-08T18:03:26 *** profmac_ has joined #bitcoin-core-dev
1432018-09-08T18:03:28 *** profmac_ has quit IRC
1442018-09-08T18:27:27 *** drexl has quit IRC
1452018-09-08T18:55:21 *** rex4539 has joined #bitcoin-core-dev
1462018-09-08T18:57:18 *** Krellan has quit IRC
1472018-09-08T19:02:21 *** Krellan has joined #bitcoin-core-dev
1482018-09-08T19:06:36 *** csknk has quit IRC
1492018-09-08T19:08:37 *** miknotauro has joined #bitcoin-core-dev
1502018-09-08T19:11:03 *** adiabat has quit IRC
1512018-09-08T19:14:14 *** miknotauro has quit IRC
1522018-09-08T19:15:05 *** Guyver2 has quit IRC
1532018-09-08T19:28:07 *** justanotheruser has quit IRC
1542018-09-08T19:45:54 *** lnostdal has quit IRC
1552018-09-08T19:47:34 *** justanotheruser has joined #bitcoin-core-dev
1562018-09-08T20:04:25 *** masonicboom has joined #bitcoin-core-dev
1572018-09-08T20:05:48 *** Atourist has quit IRC
1582018-09-08T20:06:02 *** SopaXorzTaker has quit IRC
1592018-09-08T20:08:01 <phantomcircuit> so are we trying to match the style in the surrounding code or trying to match a new spec?
1602018-09-08T20:08:41 *** profmac has quit IRC
1612018-09-08T20:09:09 *** profmac has joined #bitcoin-core-dev
1622018-09-08T20:12:44 <sipa> phantomcircuit: that's explicitly mentioned in the developer notes :)
1632018-09-08T20:13:14 <sipa> don't try to mimick surrounding code
1642018-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
1652018-09-08T20:20:53 *** lnostdal has joined #bitcoin-core-dev
1662018-09-08T20:48:11 <gmaxwell> mostly just update what you can without expanding the size of your diff.
1672018-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
1682018-09-08T21:03:38 *** masonicboom has quit IRC
1692018-09-08T21:04:27 *** owowo has quit IRC
1702018-09-08T21:04:52 *** masonicboom has joined #bitcoin-core-dev
1712018-09-08T21:05:02 <sipa> jl2012: do you want the first byte or the last byte to be more significant?
1722018-09-08T21:05:48 *** masonicboom has quit IRC
1732018-09-08T21:05:54 *** masonicb_ has joined #bitcoin-core-dev
1742018-09-08T21:07:09 <jl2012> arith_uint256 treats the last byte more significant?
1752018-09-08T21:09:07 <sipa> jl2012: uint256 is essentially a byte array; comparing them will sort them lexicograohically
1762018-09-08T21:09:33 *** owowo has joined #bitcoin-core-dev
1772018-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
1782018-09-08T21:10:30 *** masonicb_ has quit IRC
1792018-09-08T21:14:07 <jl2012> sipa: uint256 uses memcmp, so the first byte is more significant?
1802018-09-08T21:17:12 <sipa> indeed, lexicographic ordering
1812018-09-08T21:31:00 *** drexl has joined #bitcoin-core-dev
1822018-09-08T21:45:58 *** masonicboom has joined #bitcoin-core-dev
1832018-09-08T22:10:04 *** qrestlove has quit IRC
1842018-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
1852018-09-08T22:10:54 <CubicEarth> it seems this would be a useful RPC ... DoNotPruneAbove
1862018-09-08T22:12:30 <sipa> CubicEarth: there is an RPC for manual pruning
1872018-09-08T22:19:49 <CubicEarth> I suppose prunblockchain is almost identical to what I was thinking...
1882018-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.
1892018-09-08T22:27:29 <gmaxwell> it'll shut down when it runs out of space...
1902018-09-08T22:29:31 <CubicEarth> well that's good... but it'd be nicer not to fill the disk
1912018-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
1922018-09-08T22:33:57 <CubicEarth> manual pruning ensure blocks remain available for lightning to inspect
1932018-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
1942018-09-08T22:51:06 *** masonicboom has quit IRC
1952018-09-08T22:51:42 *** cisba has joined #bitcoin-core-dev
1962018-09-08T22:52:22 *** masonicboom has joined #bitcoin-core-dev
1972018-09-08T22:55:32 *** masonicb_ has joined #bitcoin-core-dev
1982018-09-08T22:56:39 *** masonicboom has quit IRC
1992018-09-08T22:59:34 *** masonicb_ has quit IRC
2002018-09-08T23:11:07 *** Krellan has quit IRC
2012018-09-08T23:11:59 *** Krellan has joined #bitcoin-core-dev
2022018-09-08T23:13:43 *** owowo has quit IRC
2032018-09-08T23:22:15 *** owowo has joined #bitcoin-core-dev
2042018-09-08T23:55:27 *** cisba has quit IRC