node::GetTip

Return the hash and height of the active chain tip.

Synopsis

Declared in <node/miner.h>

std::optional<interfaces::BlockRef>
GetTip(ChainstateManager& chainman);

Return Value

The active tip reference, or std::nullopt if there is no active chain.

Parameters

NameDescription
chainmanThe chainstate manager to query.