mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-08-03 02:02:50 +02:00
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:
@@ -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