Bitcoin Core  27.99.0
P2P Digital Currency
mempool_removal_reason.h
Go to the documentation of this file.
1 // Copyright (c) 2016-present The Bitcoin Core developers
2 // Distributed under the MIT software license, see the accompanying
3 // file COPYING or https://opensource.org/license/mit/.
4 
5 #ifndef BITCOIN_KERNEL_MEMPOOL_REMOVAL_REASON_H
6 #define BITCOIN_KERNEL_MEMPOOL_REMOVAL_REASON_H
7 
8 #include <string>
9 
14  EXPIRY,
15  SIZELIMIT,
16  REORG,
17  BLOCK,
18  CONFLICT,
19  REPLACED,
20 };
21 
22 std::string RemovalReasonToString(const MemPoolRemovalReason& r) noexcept;
23 
24 #endif // BITCOIN_KERNEL_MEMPOOL_REMOVAL_REASON_H
MemPoolRemovalReason
Reason why a transaction was removed from the mempool, this is passed to the notification signal.
@ SIZELIMIT
Removed in size limiting.
@ BLOCK
Removed for block.
@ EXPIRY
Expired from mempool.
@ REPLACED
Removed for replacement.
@ CONFLICT
Removed for conflict with in-block transaction.
@ REORG
Removed for reorganization.
std::string RemovalReasonToString(const MemPoolRemovalReason &r) noexcept