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);