Skip to content

Commit 22378ad

Browse files
committed
Remove no longer used mempool.exists(outpoint)
1 parent ac52492 commit 22378ad

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)