aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-06-18 22:27:47 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-06-19 11:49:36 +0000
commitfcbf7b3f747b068f993d22ec8deabea643254da3 (patch)
tree214efe825621655e555887f205d7dc37ca472a31
parentMerge pull request #5641 (diff)
downloadmonero-fcbf7b3f747b068f993d22ec8deabea643254da3.tar.xz
p2p: propagate out peers limit to payload handler
-rw-r--r--src/p2p/net_node.inl1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/p2p/net_node.inl b/src/p2p/net_node.inl
index ba29d92c9..5280e777c 100644
--- a/src/p2p/net_node.inl
+++ b/src/p2p/net_node.inl
@@ -2213,6 +2213,7 @@ namespace nodetool
public_zone->second.m_config.m_net_config.max_out_connection_count = count;
if(current > count)
public_zone->second.m_net_server.get_config_object().del_out_connections(current - count);
+ m_payload_handler.set_max_out_peers(count);
}
}