CPartialMerkleTree::CalcHash

calculate the hash of a node in the merkle tree (at leaf level: the txid's themselves)

Synopsis

Declared in <merkleblock.h>

uint256
CalcHash(
    int height,
    unsigned int pos,
    std::vector<Txid> const& vTxid);

Return Value

The hash of the requested node.

Parameters

NameDescription
heightThe tree level of the node, counted from the leaf level (height 0) upward.
posThe position of the node within its level.
vTxidThe full list of transaction ids for the block.