Changeset View
Changeset View
Standalone View
Standalone View
src/validationinterface.h
Show First 20 Lines • Show All 135 Lines • ▼ Show 20 Lines | protected: | ||||
*/ | */ | ||||
virtual void TransactionRemovedFromMempool(const CTransactionRef &ptx) {} | virtual void TransactionRemovedFromMempool(const CTransactionRef &ptx) {} | ||||
/** | /** | ||||
* Notifies listeners of a block being connected. | * Notifies listeners of a block being connected. | ||||
* Provides a vector of transactions evicted from the mempool as a result. | * Provides a vector of transactions evicted from the mempool as a result. | ||||
* | * | ||||
* Called on a background thread. | * Called on a background thread. | ||||
*/ | */ | ||||
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) {} | |||||
/** | /** | ||||
* Notifies listeners of a block being disconnected | * Notifies listeners of a block being disconnected | ||||
* | * | ||||
* Called on a background thread. | * Called on a background thread. | ||||
*/ | */ | ||||
virtual void BlockDisconnected(const std::shared_ptr<const CBlock> &block, | virtual void BlockDisconnected(const std::shared_ptr<const CBlock> &block, | ||||
const CBlockIndex *pindex) {} | const CBlockIndex *pindex) {} | ||||
/** | /** | ||||
▲ Show 20 Lines • Show All 57 Lines • ▼ Show 20 Lines | public: | ||||
void FlushBackgroundCallbacks(); | void FlushBackgroundCallbacks(); | ||||
size_t CallbacksPending(); | size_t CallbacksPending(); | ||||
void UpdatedBlockTip(const CBlockIndex *, const CBlockIndex *, | void UpdatedBlockTip(const CBlockIndex *, const CBlockIndex *, | ||||
bool fInitialDownload); | bool fInitialDownload); | ||||
void TransactionAddedToMempool(const CTransactionRef &); | void TransactionAddedToMempool(const CTransactionRef &); | ||||
void TransactionRemovedFromMempool(const CTransactionRef &); | void TransactionRemovedFromMempool(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>> &); | |||||
void BlockDisconnected(const std::shared_ptr<const CBlock> &, | void BlockDisconnected(const std::shared_ptr<const CBlock> &, | ||||
const CBlockIndex *pindex); | const CBlockIndex *pindex); | ||||
void ChainStateFlushed(const CBlockLocator &); | void ChainStateFlushed(const CBlockLocator &); | ||||
void BlockChecked(const CBlock &, const BlockValidationState &); | void BlockChecked(const CBlock &, const BlockValidationState &); | ||||
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 |