From 67f01f29d48aaf848fc9affb71593fef595c1573 Mon Sep 17 00:00:00 2001 From: Brian Fritton Date: Sat, 2 Oct 2021 10:13:05 -0500 Subject: [PATCH] Update init.go to increase max inbound peers for validator nodes (#464) * Update init.go Change to max outbound peers for validator node as requested by Valardragon and proposed by FONDSMATIVE and dff | mp20 * Update init.go Updated update to inbound and outbound connections to keep an 8:1 ratio of inbound slots to outbound. * Update init.go pseudo-go-fmt Co-authored-by: Jacob Gadikian --- cmd/osmosisd/cmd/init.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/osmosisd/cmd/init.go b/cmd/osmosisd/cmd/init.go index 80d59e64eb7..9e94a55386d 100644 --- a/cmd/osmosisd/cmd/init.go +++ b/cmd/osmosisd/cmd/init.go @@ -91,7 +91,7 @@ func InitCmd(mbm module.BasicManager, defaultNodeHome string) *cobra.Command { //Override default settings in config.toml config.P2P.Seeds = strings.Join(seeds[:], ",") - config.P2P.MaxNumInboundPeers = 150 + config.P2P.MaxNumInboundPeers = 320 config.P2P.MaxNumOutboundPeers = 40 config.Mempool.Size = 10000 config.StateSync.TrustPeriod = 112 * time.Hour