CValidationInterface::MempoolTransactionsRemovedForBlock

Notifies listeners of transactions removed from the mempool as as a result of new block being connected. MempoolTransactionsRemovedForBlock will be fired before BlockConnected.

Synopsis

Declared in <validationinterface.h>

virtual
void
MempoolTransactionsRemovedForBlock(
    std::shared_ptr<CBlock const> const& block,
    std::vector<RemovedMempoolTransactionInfo> const& txs_removed_for_block,
    unsigned int block_height);

Description

Not fired while initial block download is active.

Called on a background thread.

Parameters

NameDescription
blockThe block whose connection triggered the removals.
txs_removed_for_blockThe transactions removed because they were included in the block.
block_heightHeight of the connected block.