fix: remove redundant mempool lock in ChainImpl::isInMempool()

This commit is contained in:
Fibonacci747 authored and GitHub committed 2025-11-25 20:22:39 +01:00
1 parent d5ed4ba9d8
commit 2909655fba
1 file changed
-1
-1
View File
@@ -658,7 +658,6 @@ public:
bool isInMempool(const Txid& txid) override bool isInMempool(const Txid& txid) override
{ {
if (!m_node.mempool) return false; if (!m_node.mempool) return false;
LOCK(m_node.mempool->cs);
return m_node.mempool->exists(txid); return m_node.mempool->exists(txid);
} }
bool hasDescendantsInMempool(const Txid& txid) override bool hasDescendantsInMempool(const Txid& txid) override