diff options
author | MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> | 2023-08-02 15:51:00 +0200 |
---|---|---|
committer | MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> | 2023-08-17 16:26:20 +0200 |
commit | fad8c36aa9011c3f7b1183f8380577e16a2167a6 (patch) | |
tree | bb419364988df054242da3e82da53613516da778 /src/txmempool.h | |
parent | fa5760880094c4e4238249f6d1837cd74383cc3a (diff) |
move-only: Create src/kernel/mempool_removal_reason.h
This is needed for a future commit. Can be reviewed with:
--color-moved=dimmed-zebra
Diffstat (limited to 'src/txmempool.h')
-rw-r--r-- | src/txmempool.h | 22 |
1 files changed, 4 insertions, 18 deletions
diff --git a/src/txmempool.h b/src/txmempool.h index afaaf0d4d6..869612a4a2 100644 --- a/src/txmempool.h +++ b/src/txmempool.h @@ -6,14 +6,14 @@ #ifndef BITCOIN_TXMEMPOOL_H #define BITCOIN_TXMEMPOOL_H -#include <kernel/mempool_limits.h> -#include <kernel/mempool_options.h> - #include <coins.h> #include <consensus/amount.h> #include <indirectmap.h> #include <kernel/cs_main.h> -#include <kernel/mempool_entry.h> +#include <kernel/mempool_entry.h> // IWYU pragma: export +#include <kernel/mempool_limits.h> // IWYU pragma: export +#include <kernel/mempool_options.h> // IWYU pragma: export +#include <kernel/mempool_removal_reason.h> // IWYU pragma: export #include <policy/feerate.h> #include <policy/packages.h> #include <primitives/transaction.h> @@ -225,20 +225,6 @@ struct TxMempoolInfo int64_t nFeeDelta; }; -/** Reason why a transaction was removed from the mempool, - * this is passed to the notification signal. - */ -enum class MemPoolRemovalReason { - EXPIRY, //!< Expired from mempool - SIZELIMIT, //!< Removed in size limiting - REORG, //!< Removed for reorganization - BLOCK, //!< Removed for block - CONFLICT, //!< Removed for conflict with in-block transaction - REPLACED, //!< Removed for replacement -}; - -std::string RemovalReasonToString(const MemPoolRemovalReason& r) noexcept; - /** * CTxMemPool stores valid-according-to-the-current-best-chain transactions * that may be included in the next block. |