aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlex Morcos <[email protected]>2017-06-27 14:10:03 -0400
committerAlex Morcos <[email protected]>2017-06-27 14:10:03 -0400
commit22378adbe5c7c723c2fa91c162e37a2ae1f80fb3 (patch)
tree7b7b66bf665385e407ee189386d82f237dbe785b /src
parentMerge #10118: Util: Remove redundant calls to argsGlobal.IsArgSet() (diff)
downloaddiscoin-22378adbe5c7c723c2fa91c162e37a2ae1f80fb3.tar.xz
discoin-22378adbe5c7c723c2fa91c162e37a2ae1f80fb3.zip
Remove no longer used mempool.exists(outpoint)
Diffstat (limited to 'src')
-rw-r--r--src/txmempool.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/txmempool.h b/src/txmempool.h
index 78ac3c209..be9e83eb4 100644
--- a/src/txmempool.h
+++ b/src/txmempool.h
@@ -618,13 +618,6 @@ public:
return (mapTx.count(hash) != 0);
}
- bool exists(const COutPoint& outpoint) const
- {
- LOCK(cs);
- auto it = mapTx.find(outpoint.hash);
- return (it != mapTx.end() && outpoint.n < it->GetTx().vout.size());
- }
-
CTransactionRef get(const uint256& hash) const;
TxMempoolInfo info(const uint256& hash) const;
std::vector<TxMempoolInfo> infoAll() const;