GetAncestor overloads
Synopses
Declared in <chain.h>
Efficiently find an ancestor of this block.
CBlockIndex*
GetAncestor(int height);
Efficiently finds an ancestor of this block.
CBlockIndex const*
GetAncestor(int height) const;
Return Value
The ancestor at the given height, or nullptr if none exists.
Parameters
Name |
Description |
height |
The height of the ancestor to find. |
Created with MrDocs