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

This commit is contained in:
Fibonacci747 2025-11-25 20:22:39 +01:00 committed by GitHub
parent d5ed4ba9d8
commit 2909655fba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -658,7 +658,6 @@ public:
bool isInMempool(const Txid& txid) override
{
if (!m_node.mempool) return false;
LOCK(m_node.mempool->cs);
return m_node.mempool->exists(txid);
}
bool hasDescendantsInMempool(const Txid& txid) override