Compute the Merkle root of the transactions in a block. *mutated is set to true if a duplicated subtree was found.

Synopsis

Declared in <consensus/merkle.h>

uint256
BlockMerkleRoot(
    CBlock const& block,
    bool* mutated = nullptr);

Return Value

The Merkle root of the block's transactions.

Parameters

Name

Description

block

The block whose transaction hashes form the tree leaves.

mutated

If non‐null, receives whether a duplicated subtree was found.

Created with MrDocs