1 2016-03-16 08:31:40 <JackH> whats the latest on BIP65, 112 and 113 to be included into core+
 2 2016-03-16 08:31:47 <JackH> + = ?
 3 2016-03-16 14:11:34 <tonikt> Hi guys. I'm implementing "getblocktemplate" RCP in my client and I have a question about it - hope it's the rigth place...
 4 2016-03-16 14:12:58 <tonikt> My question is: shoudl the list of the transactions returned by "getblocktemplate" be limited to 1MB, or is the RCP client responsible for limiting the size after all?
 5 2016-03-16 14:13:28 <tonikt> In other words: if I have 2MBs of txs in the mempool - should I return all of them?
 6 2016-03-16 14:14:03 <tonikt> And then: how do I set the value of the coinbasevalue field?
 7 2016-03-16 14:53:18 <Lightsword> tonikt, it is limited to the blockmaxsize config option with 1MB being the max
 8 2016-03-16 14:53:48 <tonikt> Lightsword: but how does it know what will be the size of coinbase tx?
 9 2016-03-16 14:54:51 <Lightsword> tonikit, I don’t think it would
10 2016-03-16 14:55:54 <tonikt> Lightsword: So it limits the size of all the transactions returned to <=1000000 bytes?
11 2016-03-16 14:56:19 <Lightsword> that’s my understanding
12 2016-03-16 14:56:58 <Lightsword> tonikt, are you making a mining pool?
13 2016-03-16 14:57:45 <tonikt> Lightsword: no, I'm adding mining interface to my bitcoin client, gocoin
14 2016-03-16 14:58:04 <tonikt> ... and I try to stay compatible with bitcoind
15 2016-03-16 14:58:41 <Lightsword> tonikt, is gocoin a bitcoin core fork or separate implementation?
16 2016-03-16 14:59:06 <tonikt> Lightsword: it's separate implementation, written from scratch, in Go language
17 2016-03-16 14:59:14 <tonikt> https://github.com/piotrnar/gocoin
18 2016-03-16 15:00:03 <Lightsword> tonikt, does it have anything in common with btcd?
19 2016-03-16 15:00:36 <tonikt> Lightsword: only the programming language
20 2016-03-16 15:02:08 <Lightsword> tonikt, I should probably mention that it’s generally not a good idea to mine on nodes that don’t use core’s consensus code implementation due the there being a decent chance of edge cases that could cause forks
21 2016-03-16 15:02:24 <tonikt> Lightsword: I know
22 2016-03-16 15:03:08 <Lightsword> tonikt, planning to write a mining pool in go?
23 2016-03-16 15:03:28 <tonikt> But going back to the quesiot, I've just found that bitcoind probably leaves a margin of 1000 bytes for the coinbase tx
24 2016-03-16 15:04:22 <tonikt> https://github.com/bitcoin/bitcoin/blob/master/src/miner.cpp#L127
25 2016-03-16 15:04:32 <Lightsword> tonikt, sounds about right, miners can do independent transaction selection from the template as well so if it were to go over they could remove transactions
26 2016-03-16 15:04:33 <tonikt> ... so I tihnk I'll just do the same, shoudl be fine
27 2016-03-16 15:04:47 <Lightsword> although I’m not sure how many actually do that...
28 2016-03-16 15:04:59 <tonikt> Lightsword: thanks for your help
29 2016-03-16 16:57:22 <phantomcircuit> Lightsword, fyi the max is actually 1000000 - 1000
30 2016-03-16 16:57:28 <phantomcircuit> it leaves 1000 bytes for the coinbase
31 2016-03-16 16:58:11 <phantomcircuit> nvm
32 2016-03-16 16:58:11 <phantomcircuit> oh he saw that
33 2016-03-16 20:23:50 <Chris_Stewart_5> this function inside of base_blob sets the data to byte array of zeros the length of data right?
34 2016-03-16 20:23:52 <Chris_Stewart_5> https://github.com/bitcoin/bitcoin/blob/605c17844ea32b6d237db6d83871164dc7d59dab/src/uint256.h#L40
35 2016-03-16 20:24:50 <wumpus> Chris_Stewart_5: data is a byte array, which is set fully to zeros, yes
36 2016-03-16 20:27:34 <wumpus> sizeof(DATA) will return WIDTH
37 2016-03-16 20:28:32 <Chris_Stewart_5> gotcha, thanks. I"m trying to emulate building the creditingTransaction on for bitcoin core's script_valid.json file and checking signatures against those txs
38 2016-03-16 20:28:44 <Chris_Stewart_5> https://github.com/bitcoin/bitcoin/blob/605c17844ea32b6d237db6d83871164dc7d59dab/src/test/script_tests.cpp#L57
39 2016-03-16 20:28:54 <Chris_Stewart_5> trying to translate to the jvm
40 2016-03-16 20:34:16 <Chris_Stewart_5> wumpus: So if I had a uint32 and called SetNull on it I would get "0000" in hex right?
41 2016-03-16 20:35:11 <Chris_Stewart_5> or would it be "00000000"
42 2016-03-16 20:35:29 <Chris_Stewart_5> in hex
43 2016-03-16 21:29:27 <Chris_Stewart_5> whenever I see a CScriptNum, is that equivalent to the second row on this table as far as documentation goes
44 2016-03-16 21:29:29 <Chris_Stewart_5> https://en.bitcoin.it/wiki/Script#Constants