CBlockIndex::GetAncestor

GetAncestor overloads

Synopses

Declared in <chain.h>

Efficiently find an ancestor of this block.

CBlockIndex*
GetAncestor(int height);
» more...

Efficiently finds an ancestor of this block.

CBlockIndex const*
GetAncestor(int height) const;
» more...

Return Value

The ancestor at the given height, or nullptr if none exists.

Parameters

NameDescription
heightThe height of the ancestor to find.