p2p: Limit m_block_inv_mutex

This commit is contained in:
MarcoFalke 2021-04-25 20:46:40 +02:00
parent 8f80092d78
commit fac96d0265
No known key found for this signature in database
GPG Key ID: CE2B75697E69A548

View File

@ -4449,6 +4449,7 @@ bool PeerManagerImpl::SendMessages(CNode* pto)
}
}
peer->m_blocks_for_inv_relay.clear();
}
if (pto->m_tx_relay != nullptr) {
LOCK(pto->m_tx_relay->cs_tx_inventory);
@ -4579,7 +4580,6 @@ bool PeerManagerImpl::SendMessages(CNode* pto)
}
}
}
}
if (!vInv.empty())
m_connman.PushMessage(pto, msgMaker.Make(NetMsgType::INV, vInv));