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
Name |
Description |
pindexNew |
The new chain tip. |
pindexFork |
The last common block between the old and new tip, or nullptr. |
fInitialDownload |
Whether the node is still in initial block download. |
Created with MrDocs