node::KernelNotifications::blockTip

Handle a new chain tip being connected.

Synopsis

Declared in <node/kernel_notifications.h>

[[nodiscard, requires_capability(0x7f2e33c63488)]]
virtual
kernel::InterruptResult
blockTip(
    SynchronizationState state,
    CBlockIndex const& index,
    double verification_progress) override;

Return Value

An interrupt result; Interrupted when the configured stop height is reached.

NOTE

The return value should not be discarded.

Parameters

NameDescription
stateThe current synchronization state.
indexThe block index of the new tip.
verification_progressEstimated fraction of chain verification completed.