[#CPartialMerkleTree-TraverseAndBuild] = xref:CPartialMerkleTree.adoc[CPartialMerkleTree]::TraverseAndBuild :relfileprefix: ../ :mrdocs: recursive function that traverses tree nodes, storing the data as bits and hashes == Synopsis Declared in `<merkleblock.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void TraverseAndBuild( int height, unsigned int pos, std::vector<Txid> const& vTxid, std::vector<bool> const& vMatch); ---- == Parameters [cols="1,4"] |=== | Name| Description | *height* | The tree level of the current node, counted from the leaf level (height 0) upward. | *pos* | The position of the current node within its level. | *vTxid* | The full list of transaction ids for the block. | *vMatch* | The per‐transaction mask selecting which txids are included in the proof. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#