aboutsummaryrefslogtreecommitdiff
path: root/src/p2p
diff options
context:
space:
mode:
authorErik de Castro Lopo <erikd@mega-nerd.com>2018-01-20 11:57:02 +1100
committerErik de Castro Lopo <erikd@mega-nerd.com>2018-01-29 07:06:08 +1100
commitd609a2c1640a5b3079f65f4c85b3f82afd8e5f16 (patch)
treeb7450871f8c51d6023385b3632ad25e2a13f1831 /src/p2p
parentRename connections_count to max_out_connection_count (diff)
downloadmonero-d609a2c1640a5b3079f65f4c85b3f82afd8e5f16.tar.xz
Rename delete_connections to delete_out_connections
This rename is needed so that delete_in_connections can be added.
Diffstat (limited to '')
-rw-r--r--src/p2p/net_node.h2
-rw-r--r--src/p2p/net_node.inl2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/p2p/net_node.h b/src/p2p/net_node.h
index 20520f83c..2f26695a2 100644
--- a/src/p2p/net_node.h
+++ b/src/p2p/net_node.h
@@ -118,7 +118,7 @@ namespace nodetool
virtual uint64_t get_connections_count();
size_t get_outgoing_connections_count();
peerlist_manager& get_peerlist_manager(){return m_peerlist;}
- void delete_connections(size_t count);
+ void delete_out_connections(size_t count);
virtual bool block_host(const epee::net_utils::network_address &adress, time_t seconds = P2P_IP_BLOCKTIME);
virtual bool unblock_host(const epee::net_utils::network_address &address);
virtual std::map<std::string, time_t> get_blocked_hosts() { CRITICAL_REGION_LOCAL(m_blocked_hosts_lock); return m_blocked_hosts; }
diff --git a/src/p2p/net_node.inl b/src/p2p/net_node.inl
index b5c97e9c6..5f00e97f0 100644
--- a/src/p2p/net_node.inl
+++ b/src/p2p/net_node.inl
@@ -1787,7 +1787,7 @@ namespace nodetool
}
template<class t_payload_net_handler>
- void node_server<t_payload_net_handler>::delete_connections(size_t count)
+ void node_server<t_payload_net_handler>::delete_out_connections(size_t count)
{
m_net_server.get_config_object().del_out_connections(count);
}