Compute the Merkle root of the transactions in a block. *mutated is set to true if a duplicated subtree was found.
Declared in <consensus/merkle.h>
uint256
BlockMerkleRoot(
CBlock const& block,
bool* mutated = nullptr);
The Merkle root of the block's transactions.
| Name | Description |
|---|---|
| block | The block whose transaction hashes form the tree leaves. |
| mutated | If non-null, receives whether a duplicated subtree was found. |