Who Created the Komodo Block?

Normally bitcoin miner generates a new address for each block reward. This is good for privacy, but it makes determining if a block is generated by a notary node problematic.

I pushed a new komodo version that lets you specify a single destination address for mined blocks. it is not required to update as it is not a hardfork, but if you are running testnet, then it would be good to update.

./komodod -gen -genproclimit=6 -notary -pubkey="0286d7c2dc7b3cfc07e2ae3d3311b2be578e5d894da4a204345c713c7db7e76a20"

the pubkey is the pubkey from the iguana wallet, which can be obtained after doing a walletpassphrase login and an activehandle call. Maybe we can update the GUI to display the pubkey to make it easier.

If you dont have an iguana wallet:
curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"encryptwallet\",\"passphrase\":\"a very strong passphrase here\"}"

if you already have an iguana wallet:
curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"walletpassphrase\",\"password\":\"a very strong passphrase here\",\"timeout\":86444}"

which outputs:

{"pubkey":"e9b52567e9e5ff99270e07b63a2a6f1ff41c4db58da62416f8b0b2c3f6c53b6c","RS":"NXT-LKC2-XCXF-U3LR-F9WSS","NXT":"15880686153265399104","btcpubkey":"0286d7c2dc7b3cfc07e2ae3d3311b2be578e5d894da4a204345c713c7db7e76a20","rmd160":"54a752f0d71b89d7c014ed0be29ca231c9546f9f","BTCD":"RGzoHWCedwL81g7hqtQ7fEvW3UexrzBZe8","BTC":"18icCzKN37XYwfkWNiQzZibJHDCNGo2Y6x","result":"success","handle":"","notary":-1,"persistent":"e9b52567e9e5ff99270e07b63a2a6f1ff41c4db58da62416f8b0b2c3f6c53b6c","status":"unlocked","duration":47475,"tag":"18292839364308746995"}

“btcpubkey” field is the one to use for the -pubkey parameter

Once all the blocks mined by notary nodes are to the same address for each notary node, then it allows calculation of how much each notary node mined per month and therefore any subsidy required. More importantly, it provides a way to determine if a block was generated by a notary node


Bitcointalk Topic Entry

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *

10 + 10 =