[#CPartialMerkleTree-CalcHash]
= xref:CPartialMerkleTree.adoc[CPartialMerkleTree]::CalcHash
:relfileprefix: ../
:mrdocs:

calculate the hash of a node in the merkle tree (at leaf level&colon; the txid&apos;s themselves)

== Synopsis

Declared in `&lt;merkleblock&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:uint256.adoc[uint256]
CalcHash(
    int height,
    unsigned int pos,
    std::vector&lt;Txid&gt; const& vTxid);
----

== Return Value

The hash of the requested node&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *height*
| The tree level of the node, counted from the leaf level (height 0) upward&period;
| *pos*
| The position of the node within its level&period;
| *vTxid*
| The full list of transaction ids for the block&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
