Skip to content

Commit de858ce

Browse files
stickies-vmarcofleon
authored andcommitted
move-only: make GetInfo a private CTxMemPool member
This allows it to be used by templated functions in a future commit.
1 parent eee473d commit de858ce

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/txmempool.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -844,10 +844,6 @@ std::vector<CTxMemPool::indexed_transaction_set::const_iterator> CTxMemPool::Get
844844
return iters;
845845
}
846846

847-
static TxMempoolInfo GetInfo(CTxMemPool::indexed_transaction_set::const_iterator it) {
848-
return TxMempoolInfo{it->GetSharedTx(), it->GetTime(), it->GetFee(), it->GetTxSize(), it->GetModifiedFee() - it->GetFee()};
849-
}
850-
851847
std::vector<CTxMemPoolEntryRef> CTxMemPool::entryAll() const
852848
{
853849
AssertLockHeld(cs);

src/txmempool.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,11 @@ class CTxMemPool
431431
const Limits& limits
432432
) const EXCLUSIVE_LOCKS_REQUIRED(cs);
433433

434+
static TxMempoolInfo GetInfo(CTxMemPool::indexed_transaction_set::const_iterator it)
435+
{
436+
return TxMempoolInfo{it->GetSharedTx(), it->GetTime(), it->GetFee(), it->GetTxSize(), it->GetModifiedFee() - it->GetFee()};
437+
}
438+
434439
public:
435440
indirectmap<COutPoint, const CTransaction*> mapNextTx GUARDED_BY(cs);
436441
std::map<uint256, CAmount> mapDeltas GUARDED_BY(cs);

0 commit comments

Comments
 (0)