recursive function that traverses tree nodes, storing the data as bits and hashes
Declared in <merkleblock.h>
void
TraverseAndBuild(
int height,
unsigned int pos,
std::vector<Txid> const& vTxid,
std::vector<bool> const& vMatch);
| 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. |