Skip to content

Commit a381f6a

Browse files
committed
Merge #10684: Remove no longer used mempool.exists(outpoint)
22378ad Remove no longer used mempool.exists(outpoint) (Alex Morcos) Tree-SHA512: e98ffdf9039a1bdd84a388dc2da43221b8850bab413dffbd18c20fb06c791ff364f824d1b3b7c0a696987ae126e52b4ee200bb63c5c46e9782c1973c6d888d32
2 parents acb1153 + 22378ad commit a381f6a

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/txmempool.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -618,13 +618,6 @@ class CTxMemPool
618618
return (mapTx.count(hash) != 0);
619619
}
620620

621-
bool exists(const COutPoint& outpoint) const
622-
{
623-
LOCK(cs);
624-
auto it = mapTx.find(outpoint.hash);
625-
return (it != mapTx.end() && outpoint.n < it->GetTx().vout.size());
626-
}
627-
628621
CTransactionRef get(const uint256& hash) const;
629622
TxMempoolInfo info(const uint256& hash) const;
630623
std::vector<TxMempoolInfo> infoAll() const;

0 commit comments

Comments
 (0)