Changeset View
Changeset View
Standalone View
Standalone View
src/validationinterface.h
Show First 20 Lines • Show All 91 Lines • ▼ Show 20 Lines | protected: | ||||
*/ | */ | ||||
virtual void | virtual void | ||||
BlockConnected(const std::shared_ptr<const CBlock> &block, | BlockConnected(const std::shared_ptr<const CBlock> &block, | ||||
const CBlockIndex *pindex, | const CBlockIndex *pindex, | ||||
const std::vector<CTransactionRef> &txnConflicted) {} | const std::vector<CTransactionRef> &txnConflicted) {} | ||||
/** Notifies listeners of a block being disconnected */ | /** Notifies listeners of a block being disconnected */ | ||||
virtual void BlockDisconnected(const std::shared_ptr<const CBlock> &block) { | virtual void BlockDisconnected(const std::shared_ptr<const CBlock> &block) { | ||||
} | } | ||||
/** Notifies listeners of the new active block chain on-disk. */ | /** | ||||
* Notifies listeners of the new active block chain on-disk. | |||||
* | |||||
* Prior to this callback, any updates are not guaranteed to persist on disk | |||||
* (ie clients need to handle shutdown/restart safety by being able to | |||||
* understand when some updates were lost due to unclean shutdown). | |||||
* | |||||
* When this callback is invoked, the validation changes done by any prior | |||||
* callback are guaranteed to exist on disk and survive a restart, including | |||||
* an unclean shutdown. | |||||
* | |||||
* Provides a locator describing the best chain, which is likely useful for | |||||
* storing current state on disk in client DBs. | |||||
* | |||||
* Called on a background thread. | |||||
markblundeberg: Note for posterity: this last comment line was incorrectly backported (should have done T436… | |||||
*/ | |||||
virtual void ChainStateFlushed(const CBlockLocator &locator) {} | virtual void ChainStateFlushed(const CBlockLocator &locator) {} | ||||
/** Notifies listeners about an inventory item being seen on the network. */ | /** Notifies listeners about an inventory item being seen on the network. */ | ||||
virtual void Inventory(const uint256 &hash) {} | virtual void Inventory(const uint256 &hash) {} | ||||
/** Tells listeners to broadcast their data. */ | /** Tells listeners to broadcast their data. */ | ||||
virtual void ResendWalletTransactions(int64_t nBestBlockTime, | virtual void ResendWalletTransactions(int64_t nBestBlockTime, | ||||
CConnman *connman) {} | CConnman *connman) {} | ||||
/** | /** | ||||
* Notifies listeners of a block validation result. | * Notifies listeners of a block validation result. | ||||
▲ Show 20 Lines • Show All 69 Lines • Show Last 20 Lines |
Note for posterity: this last comment line was incorrectly backported (should have done T436 first)