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

Name

Description

state

Current synchronization state of the node.

index

Block index of the new chain tip.

verification_progress

Estimated verification progress, from 0 to 1.

Created with MrDocs