mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-13 19:50:43 +02:00
Make CTxMemPool::isSpent() const
This commit is contained in:
parent
7466a26cab
commit
1fdc7c41bb
@ -339,7 +339,7 @@ CTxMemPool::CTxMemPool(CBlockPolicyEstimator* estimator) :
|
||||
nCheckFrequency = 0;
|
||||
}
|
||||
|
||||
bool CTxMemPool::isSpent(const COutPoint& outpoint)
|
||||
bool CTxMemPool::isSpent(const COutPoint& outpoint) const
|
||||
{
|
||||
LOCK(cs);
|
||||
return mapNextTx.count(outpoint);
|
||||
|
@ -550,7 +550,7 @@ public:
|
||||
void _clear(); //lock free
|
||||
bool CompareDepthAndScore(const uint256& hasha, const uint256& hashb);
|
||||
void queryHashes(std::vector<uint256>& vtxid);
|
||||
bool isSpent(const COutPoint& outpoint);
|
||||
bool isSpent(const COutPoint& outpoint) const;
|
||||
unsigned int GetTransactionsUpdated() const;
|
||||
void AddTransactionsUpdated(unsigned int n);
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user