Skip to content

Commit 1fdc7c4

Browse files
committed
Make CTxMemPool::isSpent() const
1 parent 7466a26 commit 1fdc7c4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/txmempool.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ CTxMemPool::CTxMemPool(CBlockPolicyEstimator* estimator) :
339339
nCheckFrequency = 0;
340340
}
341341

342-
bool CTxMemPool::isSpent(const COutPoint& outpoint)
342+
bool CTxMemPool::isSpent(const COutPoint& outpoint) const
343343
{
344344
LOCK(cs);
345345
return mapNextTx.count(outpoint);

src/txmempool.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ class CTxMemPool
550550
void _clear(); //lock free
551551
bool CompareDepthAndScore(const uint256& hasha, const uint256& hashb);
552552
void queryHashes(std::vector<uint256>& vtxid);
553-
bool isSpent(const COutPoint& outpoint);
553+
bool isSpent(const COutPoint& outpoint) const;
554554
unsigned int GetTransactionsUpdated() const;
555555
void AddTransactionsUpdated(unsigned int n);
556556
/**

0 commit comments

Comments
 (0)