From c51ef0cda768d77c5314de1f570d1258a4c82ab5 Mon Sep 17 00:00:00 2001 From: sowle Date: Tue, 19 Nov 2019 18:08:21 +0300 Subject: [PATCH] p2p: minor issues fixed --- src/p2p/net_node.h | 3 ++- src/p2p/net_node.inl | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/p2p/net_node.h b/src/p2p/net_node.h index 29ff8705..c57fa524 100644 --- a/src/p2p/net_node.h +++ b/src/p2p/net_node.h @@ -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) {} diff --git a/src/p2p/net_node.inl b/src/p2p/net_node.inl index 8557f89e..19c2bf64 100644 --- a/src/p2p/net_node.inl +++ b/src/p2p/net_node.inl @@ -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