Changeset View
Changeset View
Standalone View
Standalone View
src/validationinterface.h
Show First 20 Lines • Show All 99 Lines • ▼ Show 20 Lines | protected: | ||||
virtual void UpdatedBlockTip(const CBlockIndex *pindexNew, | virtual void UpdatedBlockTip(const CBlockIndex *pindexNew, | ||||
const CBlockIndex *pindexFork, | const CBlockIndex *pindexFork, | ||||
bool fInitialDownload) {} | bool fInitialDownload) {} | ||||
/** | /** | ||||
* 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 &tx) {} | ||||
/** | /** | ||||
* Notifies listeners of a transaction leaving mempool. | * Notifies listeners of a transaction leaving mempool. | ||||
* | * | ||||
* This notification fires for transactions that are removed from the | * This notification fires for transactions that are removed from the | ||||
* mempool for the following reasons: | * mempool for the following reasons: | ||||
* | * | ||||
* - EXPIRY (expired from mempool after -mempoolexpiry hours) | * - EXPIRY (expired from mempool after -mempoolexpiry hours) | ||||
* - SIZELIMIT (removed in size limiting if the mempool exceeds -maxmempool | * - SIZELIMIT (removed in size limiting if the mempool exceeds -maxmempool | ||||
Show All 16 Lines | protected: | ||||
* - TransactionRemovedFromMempool(tx2 from block A) | * - TransactionRemovedFromMempool(tx2 from block A) | ||||
* - TransactionRemovedFromMempool(tx1 from block B) | * - TransactionRemovedFromMempool(tx1 from block B) | ||||
* - TransactionRemovedFromMempool(tx2 from block B) | * - TransactionRemovedFromMempool(tx2 from block B) | ||||
* - BlockConnected(A) | * - BlockConnected(A) | ||||
* - BlockConnected(B) | * - BlockConnected(B) | ||||
* | * | ||||
* Called on a background thread. | * Called on a background thread. | ||||
*/ | */ | ||||
virtual void TransactionRemovedFromMempool(const CTransactionRef &ptx, | virtual void TransactionRemovedFromMempool(const CTransactionRef &tx, | ||||
MemPoolRemovalReason reason) {} | MemPoolRemovalReason reason) {} | ||||
/** | /** | ||||
* 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 BlockConnected(const std::shared_ptr<const CBlock> &block, | virtual void BlockConnected(const std::shared_ptr<const CBlock> &block, | ||||
▲ Show 20 Lines • Show All 88 Lines • Show Last 20 Lines |