Make CTxMemPool::isSpent() const

This commit is contained in:
Roman Zeyde 2018-03-22 13:55:22 +02:00
parent 7466a26cab
commit 1fdc7c41bb
No known key found for this signature in database
GPG key ID: 87CAE5FA46917CBB
2 changed files with 2 additions and 2 deletions

View file

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

View file

@ -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);
/**