mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
Merge pull request #7239
e685f52e2
p2p: fix deadlock banning while updating peer lists (moneromooo)
This commit is contained in:
commit
db686707cb
1 changed files with 1 additions and 0 deletions
|
@ -2155,6 +2155,7 @@ namespace nodetool
|
||||||
|
|
||||||
LOG_DEBUG_CC(context, "REMOTE PEERLIST: remote peerlist size=" << peerlist_.size());
|
LOG_DEBUG_CC(context, "REMOTE PEERLIST: remote peerlist size=" << peerlist_.size());
|
||||||
LOG_TRACE_CC(context, "REMOTE PEERLIST: " << ENDL << print_peerlist_to_string(peerlist_));
|
LOG_TRACE_CC(context, "REMOTE PEERLIST: " << ENDL << print_peerlist_to_string(peerlist_));
|
||||||
|
CRITICAL_REGION_LOCAL(m_blocked_hosts_lock);
|
||||||
return m_network_zones.at(context.m_remote_address.get_zone()).m_peerlist.merge_peerlist(peerlist_, [this](const peerlist_entry &pe) {
|
return m_network_zones.at(context.m_remote_address.get_zone()).m_peerlist.merge_peerlist(peerlist_, [this](const peerlist_entry &pe) {
|
||||||
return !is_addr_recently_failed(pe.adr) && is_remote_host_allowed(pe.adr);
|
return !is_addr_recently_failed(pe.adr) && is_remote_host_allowed(pe.adr);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue