CValidationInterface::UpdatedBlockTip

Notifies listeners when the block chain tip advances.

Synopsis

Declared in <validationinterface.h>

virtual
void
UpdatedBlockTip(
    CBlockIndex const* pindexNew,
    CBlockIndex const* pindexFork,
    bool fInitialDownload);

Description

When multiple blocks are connected at once, UpdatedBlockTip will be called on the final tip but may not be called on every intermediate tip. If the latter behavior is desired, subscribe to BlockConnected() instead.

Called on a background thread. Only called for the active chainstate.

Parameters

NameDescription
pindexNewThe new chain tip.
pindexForkThe last common block between the old and new tip, or nullptr.
fInitialDownloadWhether the node is still in initial block download.