From de858ce2bea83c53635dee9a49c8c273a12440dd Mon Sep 17 00:00:00 2001 From: stickies-v Date: Mon, 23 Jun 2025 18:19:55 +0100 Subject: [PATCH] move-only: make GetInfo a private CTxMemPool member This allows it to be used by templated functions in a future commit. --- src/txmempool.cpp | 4 ---- src/txmempool.h | 5 +++++ 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/txmempool.cpp b/src/txmempool.cpp index e3660d9aea2..f3b617e11d0 100644 --- a/src/txmempool.cpp +++ b/src/txmempool.cpp @@ -844,10 +844,6 @@ std::vector CTxMemPool::Get return iters; } -static TxMempoolInfo GetInfo(CTxMemPool::indexed_transaction_set::const_iterator it) { - return TxMempoolInfo{it->GetSharedTx(), it->GetTime(), it->GetFee(), it->GetTxSize(), it->GetModifiedFee() - it->GetFee()}; -} - std::vector CTxMemPool::entryAll() const { AssertLockHeld(cs); diff --git a/src/txmempool.h b/src/txmempool.h index ca1d1e870e7..c6290c0cdc7 100644 --- a/src/txmempool.h +++ b/src/txmempool.h @@ -431,6 +431,11 @@ private: const Limits& limits ) const EXCLUSIVE_LOCKS_REQUIRED(cs); + static TxMempoolInfo GetInfo(CTxMemPool::indexed_transaction_set::const_iterator it) + { + return TxMempoolInfo{it->GetSharedTx(), it->GetTime(), it->GetFee(), it->GetTxSize(), it->GetModifiedFee() - it->GetFee()}; + } + public: indirectmap mapNextTx GUARDED_BY(cs); std::map mapDeltas GUARDED_BY(cs);