kernel::Notifications::blockTip

Notifies that the active chain tip has advanced to a new block.

Synopsis

Declared in <kernel/notifications_interface.h>

[[nodiscard]]
virtual
InterruptResult
blockTip(
    SynchronizationState state,
    CBlockIndex const& index,
    double verification_progress);

Return Value

An interrupt result requesting that the operation stop, or empty to continue.

NOTE

The return value should not be discarded.

Parameters

NameDescription
stateCurrent synchronization state of the node.
indexBlock index of the new chain tip.
verification_progressEstimated verification progress, from 0 to 1.