上QQ阅读APP看书,第一时间看更新
Editing the Merkle root
A Merkle tree is an important piece in Bitcoin's puzzle. It's a fingerprint of the entire list of transactions, thereby enabling a user to verify whether or not a transaction has been included in the block.
In testparams.cpp, look for the following line:
assert( genesis.hashMerkleRoot == uint256s('merkle hash value');
Replace the Merkle hash with the hash calculated by GenesisH0. To check the genesis block Merkle root, you can print its hash root:
printf ("Readercoin hashMerkleRoot:% s \ n", genesis.hashMerkleRoot.ToString (). c_str ());
All set? We have finished defining the new genesis block.