diff options
| author | Roman Zeyde <[email protected]> | 2018-03-22 13:55:22 +0200 |
|---|---|---|
| committer | Roman Zeyde <[email protected]> | 2018-03-25 11:32:41 +0300 |
| commit | 1fdc7c41bb1eea3a25c3387f147ff8839a78d4ad (patch) | |
| tree | c48df00da7ff4d96ae71e26eb023861eb237e0e2 | |
| parent | Merge #12760: Docs: Improve documentation on standard communication channels (diff) | |
| download | discoin-1fdc7c41bb1eea3a25c3387f147ff8839a78d4ad.tar.xz discoin-1fdc7c41bb1eea3a25c3387f147ff8839a78d4ad.zip | |
Make CTxMemPool::isSpent() const
| -rw-r--r-- | src/txmempool.cpp | 2 | ||||
| -rw-r--r-- | src/txmempool.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/txmempool.cpp b/src/txmempool.cpp index d1edde284..cc639288d 100644 --- a/src/txmempool.cpp +++ b/src/txmempool.cpp @@ -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); diff --git a/src/txmempool.h b/src/txmempool.h index 08a342101..699f6b554 100644 --- a/src/txmempool.h +++ b/src/txmempool.h @@ -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); /** |