Notifies listeners when the block chain tip advances.
Declared in <validationinterface.h>
virtual
void
UpdatedBlockTip(
CBlockIndex const* pindexNew,
CBlockIndex const* pindexFork,
bool fInitialDownload);
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.
| 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. |