Skip to content

Commit

Permalink
remove the mempool lock now as we dont lock mempool inside now
Browse files Browse the repository at this point in the history
  • Loading branch information
sidhujag committed Aug 28, 2023
1 parent f8b2d20 commit 3e94cc4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/net_processing.cpp
Expand Up @@ -5913,8 +5913,7 @@ bool PeerManagerImpl::SendMessages(CNode* pto)
}

if (auto tx_relay = peer->GetTxRelay(); tx_relay != nullptr) {
// SYSCOIN avoid deadlock because mempool is used inside, should be locked outside of cs_tx_inventory, invalidateblock will lock mempool first and then cs_tx_inventory
LOCK2(m_mempool.cs, tx_relay->m_tx_inventory_mutex);
LOCK(tx_relay->m_tx_inventory_mutex);
// SYSCOIN Check whether periodic sends should happen
// Note: If this node is running in a Masternode mode, it makes no sense to delay outgoing txes
// because we never produce any txes ourselves i.e. no privacy is lost in this case.
Expand Down

0 comments on commit 3e94cc4

Please sign in to comment.