From 01984cb3b205c50ce5f1c9e3310a1e0aba09e82b Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Thu, 30 Jun 2022 17:15:32 -0400 Subject: [PATCH] p2p: set outgoing connections to around 20% of total connections (#8913) (#8914) (cherry picked from commit 47cb30fc1d647183d500b0ecc31248df5dfc678c) Co-authored-by: William Banfield <4561443+williambanfield@users.noreply.github.com> --- config/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/config.go b/config/config.go index bebbf8d50..c4182fe48 100644 --- a/config/config.go +++ b/config/config.go @@ -778,7 +778,7 @@ func DefaultP2PConfig() *P2PConfig { MaxNumInboundPeers: 40, MaxNumOutboundPeers: 10, MaxConnections: 64, - MaxOutgoingConnections: 32, + MaxOutgoingConnections: 12, MaxIncomingConnectionAttempts: 100, PersistentPeersMaxDialPeriod: 0 * time.Second, FlushThrottleTimeout: 100 * time.Millisecond,