Skip to content

Commit

Permalink
Update init.go to increase max inbound peers for validator nodes (#464)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
2 people authored and ValarDragon committed Oct 11, 2021
1 parent ef19ba0 commit 67f01f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/osmosisd/cmd/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 67f01f2

Please sign in to comment.