Merge #10684: Remove no longer used mempool.exists(outpoint)

22378ad Remove no longer used mempool.exists(outpoint) (Alex Morcos)

Tree-SHA512: e98ffdf9039a1bdd84a388dc2da43221b8850bab413dffbd18c20fb06c791ff364f824d1b3b7c0a696987ae126e52b4ee200bb63c5c46e9782c1973c6d888d32
This commit is contained in:
Wladimir J. van der Laan 2017-06-28 09:13:42 +02:00 committed by Pasta
parent 9d49fbff69
commit 77088082ea
No known key found for this signature in database
GPG Key ID: D362C9F7142766AE

View File

@ -657,13 +657,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;