calculate the hash of a node in the merkle tree (at leaf level: the txid's themselves)
Declared in <merkleblock.h>
uint256
CalcHash(
int height,
unsigned int pos,
std::vector<Txid> const& vTxid);
The hash of the requested node.
| 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. |