MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / MempoolTransactionsRemovedForBlock

Method MempoolTransactionsRemovedForBlock

src/validationinterface.cpp:233–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

231}
232
233void ValidationSignals::MempoolTransactionsRemovedForBlock(const std::vector<RemovedMempoolTransactionInfo>& txs_removed_for_block, unsigned int nBlockHeight)
234{
235 auto log_msg = LOG_MSG("%s: block height=%s txs removed=%s", __func__,
236 nBlockHeight,
237 txs_removed_for_block.size());
238 auto event = [txs_removed_for_block, nBlockHeight, this] {
239 m_internals->Iterate([&](CValidationInterface& callbacks) { callbacks.MempoolTransactionsRemovedForBlock(txs_removed_for_block, nBlockHeight); });
240 };
241 ENQUEUE_AND_LOG_EVENT(std::move(event), std::move(log_msg));
242}
243
244void ValidationSignals::BlockDisconnected(std::shared_ptr<const CBlock> pblock, const CBlockIndex* pindex)
245{

Callers 1

removeForBlockMethod · 0.45

Calls 2

IterateMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected