[#CPartialMerkleTree-CalcHash] = xref:CPartialMerkleTree.adoc[CPartialMerkleTree]::CalcHash :relfileprefix: ../ :mrdocs: calculate the hash of a node in the merkle tree (at leaf level: the txid's themselves) == Synopsis Declared in `<merkleblock.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:uint256.adoc[uint256] CalcHash( int height, unsigned int pos, std::vector<Txid> const& vTxid); ---- == Return Value The hash of the requested node. == Parameters [cols="1,4"] |=== | 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. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#