Make CTxMemPool::isSpent() const
This commit is contained in:
parent
7466a26cab
commit
1fdc7c41bb
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
|
|
|
@ -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);
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue