CPartialMerkleTree::CalcTreeWidth

helper function to efficiently calculate the number of nodes at given height in the merkle tree

Synopsis

Declared in <merkleblock.h>

unsigned int
CalcTreeWidth(int height) const;

Return Value

The number of nodes present at that height.

Parameters

NameDescription
heightThe tree level, counted from the leaf level (height 0) upward.