CPartialMerkleTree::TraverseAndBuild

recursive function that traverses tree nodes, storing the data as bits and hashes

Synopsis

Declared in <merkleblock.h>

void
TraverseAndBuild(
    int height,
    unsigned int pos,
    std::vector<Txid> const& vTxid,
    std::vector<bool> const& vMatch);

Parameters

NameDescription
heightThe tree level of the current node, counted from the leaf level (height 0) upward.
posThe position of the current node within its level.
vTxidThe full list of transaction ids for the block.
vMatchThe per-transaction mask selecting which txids are included in the proof.