| 209 | } |
| 210 | |
| 211 | void 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 | |
| 222 | void ValidationSignals::BlockConnected(const ChainstateRole& role, std::shared_ptr<const CBlock> pblock, const CBlockIndex* pindex) |
| 223 | { |
no test coverage detected