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

Method TransactionRemovedFromMempool

src/validationinterface.cpp:211–220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209}
210
211void ValidationSignals::TransactionRemovedFromMempool(const CTransactionRef& tx, MemPoolRemovalReason reason, uint64_t mempool_sequence) {
212 auto log_msg = LOG_MSG("%s: txid=%s wtxid=%s reason=%s", __func__,
213 tx->GetHash().ToString(),
214 tx->GetWitnessHash().ToString(),
215 RemovalReasonToString(reason));
216 auto event = [tx, reason, mempool_sequence, this] {
217 m_internals->Iterate([&](CValidationInterface& callbacks) { callbacks.TransactionRemovedFromMempool(tx, reason, mempool_sequence); });
218 };
219 ENQUEUE_AND_LOG_EVENT(std::move(event), std::move(log_msg));
220}
221
222void ValidationSignals::BlockConnected(const ChainstateRole& role, std::shared_ptr<const CBlock> pblock, const CBlockIndex* pindex)
223{

Callers 1

removeUncheckedMethod · 0.45

Calls 4

RemovalReasonToStringFunction · 0.85
IterateMethod · 0.80
ToStringMethod · 0.45
GetHashMethod · 0.45

Tested by

no test coverage detected