1
0
Fork 0
forked from lthn/blockchain

p2p: minor issues fixed

This commit is contained in:
sowle 2019-11-19 18:08:21 +03:00
parent f70489a02d
commit c51ef0cda7
No known key found for this signature in database
GPG key ID: C07A24B2D89D49FC
2 changed files with 5 additions and 3 deletions

View file

@ -80,7 +80,8 @@ namespace nodetool
m_ip_address{},
m_last_stat_request_time{},
m_use_only_priority_peers(false),
m_peer_livetime{}
m_peer_livetime{},
m_debug_requests_enabled(false)
{}

View file

@ -100,9 +100,9 @@ namespace nodetool
if (m_offline_mode)
return false;
//@#@ workaround
//@#@ temporary workaround
return true;
#if 0
CRITICAL_REGION_LOCAL(m_blocked_ips_lock);
auto it = m_blocked_ips.find(addr);
if(it == m_blocked_ips.end())
@ -114,6 +114,7 @@ namespace nodetool
return true;
}
return false;
#endif
}
//-----------------------------------------------------------------------------------
template<class t_payload_net_handler>