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

Name

Description

height

The tree level of the node, counted from the leaf level (height 0) upward.

pos

The position of the node within its level.

vTxid

The full list of transaction ids for the block.

Created with MrDocs