Changeset View
Changeset View
Standalone View
Standalone View
src/validationinterface.h
Show First 20 Lines • Show All 99 Lines • ▼ Show 20 Lines | protected: | ||||
* Notifies listeners of a transaction having been added to mempool. | * Notifies listeners of a transaction having been added to mempool. | ||||
* | * | ||||
* Called on a background thread. | * Called on a background thread. | ||||
*/ | */ | ||||
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 notification fires for transactions that are removed from the | ||||
* size limiting, reorg (changes in lock times/coinbase maturity), or | * mempool for the following reasons: | ||||
* replacement. This does not include any transactions which are included | * | ||||
* in BlockConnectedDisconnected either in block->vtx or in txnConflicted. | * - EXPIRY (expired from mempool after -mempoolexpiry hours) | ||||
* - SIZELIMIT (removed in size limiting if the mempool exceeds -maxmempool | |||||
* megabytes) | |||||
* - REORG (removed during a reorg) | |||||
* - CONFLICT (removed because it conflicts with in-block transaction) | |||||
* | |||||
* This does not fire for transactions that are removed from the mempool | |||||
* because they have been included in a block. Any client that is interested | |||||
* in transactions removed from the mempool for inclusion in a block can | |||||
* learn about those transactions from the BlockConnected notification. | |||||
* | |||||
* Transactions that are removed from the mempool because they conflict | |||||
* with a transaction in the new block will have | |||||
* TransactionRemovedFromMempool events fired *before* the BlockConnected | |||||
* event is fired. If multiple blocks are connected in one step, then the | |||||
* ordering could be: | |||||
* | |||||
* - TransactionRemovedFromMempool(tx1 from block A) | |||||
* - TransactionRemovedFromMempool(tx2 from block A) | |||||
* - TransactionRemovedFromMempool(tx1 from block B) | |||||
* - TransactionRemovedFromMempool(tx2 from block B) | |||||
* - BlockConnected(A) | |||||
* - BlockConnected(B) | |||||
* | * | ||||
* Called on a background thread. | * 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. | ||||
* | * | ||||
▲ Show 20 Lines • Show All 94 Lines • Show Last 20 Lines |