Changeset View
Changeset View
Standalone View
Standalone View
src/validationinterface.h
Show First 20 Lines • Show All 135 Lines • ▼ Show 20 Lines | protected: | ||||
* an unclean shutdown. | * an unclean shutdown. | ||||
* | * | ||||
* Provides a locator describing the best chain, which is likely useful for | * Provides a locator describing the best chain, which is likely useful for | ||||
* storing current state on disk in client DBs. | * storing current state on disk in client DBs. | ||||
* | * | ||||
* Called on a background thread. | * Called on a background thread. | ||||
*/ | */ | ||||
virtual void ChainStateFlushed(const CBlockLocator &locator) {} | virtual void ChainStateFlushed(const CBlockLocator &locator) {} | ||||
/** Tells listeners to broadcast their data. */ | |||||
virtual void ResendWalletTransactions(CConnman *connman) {} | |||||
/** | /** | ||||
* Notifies listeners of a block validation result. | * Notifies listeners of a block validation result. | ||||
* If the provided CValidationState IsValid, the provided block | * If the provided CValidationState IsValid, the provided block | ||||
* is guaranteed to be the current best block at the time the | * is guaranteed to be the current best block at the time the | ||||
* callback was generated (not necessarily now) | * callback was generated (not necessarily now) | ||||
*/ | */ | ||||
virtual void BlockChecked(const CBlock &, const CValidationState &) {} | virtual void BlockChecked(const CBlock &, const CValidationState &) {} | ||||
/** | /** | ||||
▲ Show 20 Lines • Show All 46 Lines • ▼ Show 20 Lines | void UpdatedBlockTip(const CBlockIndex *, const CBlockIndex *, | ||||
bool fInitialDownload); | bool fInitialDownload); | ||||
void TransactionAddedToMempool(const CTransactionRef &); | void TransactionAddedToMempool(const CTransactionRef &); | ||||
void | void | ||||
BlockConnected(const std::shared_ptr<const CBlock> &, | BlockConnected(const std::shared_ptr<const CBlock> &, | ||||
const CBlockIndex *pindex, | const CBlockIndex *pindex, | ||||
const std::shared_ptr<const std::vector<CTransactionRef>> &); | const std::shared_ptr<const std::vector<CTransactionRef>> &); | ||||
void BlockDisconnected(const std::shared_ptr<const CBlock> &); | void BlockDisconnected(const std::shared_ptr<const CBlock> &); | ||||
void ChainStateFlushed(const CBlockLocator &); | void ChainStateFlushed(const CBlockLocator &); | ||||
void Broadcast(CConnman *connman); | |||||
void BlockChecked(const CBlock &, const CValidationState &); | void BlockChecked(const CBlock &, const CValidationState &); | ||||
void NewPoWValidBlock(const CBlockIndex *, | void NewPoWValidBlock(const CBlockIndex *, | ||||
const std::shared_ptr<const CBlock> &); | const std::shared_ptr<const CBlock> &); | ||||
}; | }; | ||||
CMainSignals &GetMainSignals(); | CMainSignals &GetMainSignals(); | ||||
#endif // BITCOIN_VALIDATIONINTERFACE_H | #endif // BITCOIN_VALIDATIONINTERFACE_H |