aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2017-06-28 09:13:42 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2017-06-28 09:21:38 +0200
commita381f6a5bdc2d5da7e4df64f230eb03f8c04cc12 (patch)
tree518cad479d9a8ba546dad69358e6e8054ec973ec /src
parentacb11535cb8499fd47fdde7f52457f8945b58856 (diff)
parent22378adbe5c7c723c2fa91c162e37a2ae1f80fb3 (diff)
downloadbitcoin-a381f6a5bdc2d5da7e4df64f230eb03f8c04cc12.tar.xz
Merge #10684: Remove no longer used mempool.exists(outpoint)
22378ad Remove no longer used mempool.exists(outpoint) (Alex Morcos) Tree-SHA512: e98ffdf9039a1bdd84a388dc2da43221b8850bab413dffbd18c20fb06c791ff364f824d1b3b7c0a696987ae126e52b4ee200bb63c5c46e9782c1973c6d888d32
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 78ac3c209b..be9e83eb4b 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;