Make CTxMemPool::isSpent() const

This commit is contained in:
Roman Zeyde committed 2018-03-25 11:32:41 +03:00
1 parent 7466a26cab
commit 1fdc7c41bb
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -339,7 +339,7 @@ CTxMemPool::CTxMemPool(CBlockPolicyEstimator* estimator) :
nCheckFrequency = 0; nCheckFrequency = 0;
} }
bool CTxMemPool::isSpent(const COutPoint& outpoint) bool CTxMemPool::isSpent(const COutPoint& outpoint) const
{ {
LOCK(cs); LOCK(cs);
return mapNextTx.count(outpoint); return mapNextTx.count(outpoint);
+1 -1
View File
@@ -550,7 +550,7 @@ public:
void _clear(); //lock free void _clear(); //lock free
bool CompareDepthAndScore(const uint256& hasha, const uint256& hashb); bool CompareDepthAndScore(const uint256& hasha, const uint256& hashb);
void queryHashes(std::vector<uint256>& vtxid); void queryHashes(std::vector<uint256>& vtxid);
bool isSpent(const COutPoint& outpoint); bool isSpent(const COutPoint& outpoint) const;
unsigned int GetTransactionsUpdated() const; unsigned int GetTransactionsUpdated() const;
void AddTransactionsUpdated(unsigned int n); void AddTransactionsUpdated(unsigned int n);
/** /**