fix: remove redundant mempool lock in ChainImpl::isInMempool()
This commit is contained in:
1 parent
d5ed4ba9d8
commit
2909655fba
1 file changed
-1
@@ -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
|
||||||
|
|||||||
Reference in new issue
Block a user