Changeset View
Changeset View
Standalone View
Standalone View
src/validationinterface.h
Show First 20 Lines • Show All 71 Lines • ▼ Show 20 Lines | |||||
protected: | protected: | ||||
/** | /** | ||||
* Protected destructor so that instances can only be deleted by derived | * Protected destructor so that instances can only be deleted by derived | ||||
* classes. If that restriction is no longer desired, this should be made | * classes. If that restriction is no longer desired, this should be made | ||||
* public and virtual. | * public and virtual. | ||||
*/ | */ | ||||
~CValidationInterface() = default; | ~CValidationInterface() = default; | ||||
/** | /** | ||||
* Notifies listeners of updated block chain tip | * Notifies listeners when the block chain tip advances. | ||||
* | |||||
* 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. | * Called on a background thread. | ||||
*/ | */ | ||||
virtual void UpdatedBlockTip(const CBlockIndex *pindexNew, | virtual void UpdatedBlockTip(const CBlockIndex *pindexNew, | ||||
const CBlockIndex *pindexFork, | const CBlockIndex *pindexFork, | ||||
bool fInitialDownload) {} | bool fInitialDownload) {} | ||||
/** | /** | ||||
* Notifies listeners of a transaction having been added to mempool. | * Notifies listeners of a transaction having been added to mempool. | ||||
▲ Show 20 Lines • Show All 130 Lines • Show Last 20 Lines |