Author: Peter Todd 2014-09-20 16:24:16
Published on: 2014-09-20T16:24:16+00:00
On September 20, 2014, Peter Grigor asked why the Merkle root is the same as the coinbase transaction ID from block 0 to block 72499. The reason for this is due to how the merkle tree algorithm works. In the algorithm, all the txids are pushed onto the vMerkleTree vector, which is initially blank. For most of the early blocks, there was just the coinbase transaction and no other transactions. This means that a for loop never executes because nSize is always equal to vtx.size() == 1.
Updated on: 2023-06-09T02:38:10.881039+00:00