diff options
author | Erik de Castro Lopo <erikd@mega-nerd.com> | 2018-01-20 17:36:19 +1100 |
---|---|---|
committer | Erik de Castro Lopo <erikd@mega-nerd.com> | 2018-01-29 07:06:08 +1100 |
commit | b927c0fc7a4c69aad207a97cb977fe7f11a58c11 (patch) | |
tree | 9c6d4c6ae988e23dd30eb5dedf497bede4829d9e /src/rpc/core_rpc_server.cpp | |
parent | Merge pull request #3198 (diff) | |
download | monero-b927c0fc7a4c69aad207a97cb977fe7f11a58c11.tar.xz |
Rename connections_count to max_out_connection_count
This is needed so that a max_in_connection_count can be added.
Diffstat (limited to 'src/rpc/core_rpc_server.cpp')
-rw-r--r-- | src/rpc/core_rpc_server.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc/core_rpc_server.cpp b/src/rpc/core_rpc_server.cpp index 140094faa..da9795dbe 100644 --- a/src/rpc/core_rpc_server.cpp +++ b/src/rpc/core_rpc_server.cpp @@ -1596,7 +1596,7 @@ namespace cryptonote PERF_TIMER(on_out_peers); size_t n_connections = m_p2p.get_outgoing_connections_count(); size_t n_delete = (n_connections > req.out_peers) ? n_connections - req.out_peers : 0; - m_p2p.m_config.m_net_config.connections_count = req.out_peers; + m_p2p.m_config.m_net_config.max_out_connection_count = req.out_peers; if (n_delete) m_p2p.delete_connections(n_delete); res.status = CORE_RPC_STATUS_OK; |