move-only: make GetInfo a private CTxMemPool member
This allows it to be used by templated functions in a future commit.
This commit is contained in:
1 parent
eee473d9f3
commit
de858ce2be
2 files changed
+5
-4
No files matched your search
@@ -844,10 +844,6 @@ std::vector<CTxMemPool::indexed_transaction_set::const_iterator> CTxMemPool::Get
|
|||||||
return iters;
|
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<CTxMemPoolEntryRef> CTxMemPool::entryAll() const
|
std::vector<CTxMemPoolEntryRef> CTxMemPool::entryAll() const
|
||||||
{
|
{
|
||||||
AssertLockHeld(cs);
|
AssertLockHeld(cs);
|
||||||
|
|||||||
@@ -431,6 +431,11 @@ private:
|
|||||||
const Limits& limits
|
const Limits& limits
|
||||||
) const EXCLUSIVE_LOCKS_REQUIRED(cs);
|
) 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:
|
public:
|
||||||
indirectmap<COutPoint, const CTransaction*> mapNextTx GUARDED_BY(cs);
|
indirectmap<COutPoint, const CTransaction*> mapNextTx GUARDED_BY(cs);
|
||||||
std::map<uint256, CAmount> mapDeltas GUARDED_BY(cs);
|
std::map<uint256, CAmount> mapDeltas GUARDED_BY(cs);
|
||||||
|
|||||||
Reference in new issue
Block a user