Changeset View
Changeset View
Standalone View
Standalone View
src/validationinterface.h
Show First 20 Lines • Show All 55 Lines • ▼ Show 20 Lines | protected: | ||||
virtual void TransactionAddedToMempool(const CTransactionRef &ptxn) {} | virtual void TransactionAddedToMempool(const CTransactionRef &ptxn) {} | ||||
/** | /** | ||||
* Notifies listeners of a transaction leaving mempool. | * Notifies listeners of a transaction leaving mempool. | ||||
* | * | ||||
* This only fires for transactions which leave mempool because of expiry, | * This only fires for transactions which leave mempool because of expiry, | ||||
* size limiting, reorg (changes in lock times/coinbase maturity), or | * size limiting, reorg (changes in lock times/coinbase maturity), or | ||||
* replacement. This does not include any transactions which are included | * replacement. This does not include any transactions which are included | ||||
* in BlockConnectedDisconnected either in block->vtx or in txnConflicted. | * in BlockConnectedDisconnected either in block->vtx or in txnConflicted. | ||||
* | |||||
* Called on a background thread. | |||||
*/ | */ | ||||
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. | ||||
*/ | */ | ||||
virtual void | virtual void | ||||
BlockConnected(const std::shared_ptr<const CBlock> &block, | BlockConnected(const std::shared_ptr<const CBlock> &block, | ||||
▲ Show 20 Lines • Show All 79 Lines • Show Last 20 Lines |