From 336f9dac870c0576eeaf4a714876b137b9a3f7fc Mon Sep 17 00:00:00 2001 From: milad Date: Wed, 1 Jan 2025 11:00:13 +0330 Subject: [PATCH] changed default network configs in init cmd --- pkg/config/node_config.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/config/node_config.go b/pkg/config/node_config.go index a4176e3fc..691e08c12 100644 --- a/pkg/config/node_config.go +++ b/pkg/config/node_config.go @@ -77,7 +77,10 @@ func (nc NodeConfig) TendermintNodeConfig(cfg *tmcfg.Config) *tmcfg.Config { } // Update the default consensus config - cfg.Consensus.TimeoutCommit = time.Second + cfg.Consensus.TimeoutCommit = 500 * time.Millisecond + cfg.Consensus.PeerGossipSleepDuration = 10 * time.Millisecond + cfg.Consensus.PeerQueryMaj23SleepDuration = 10 * time.Millisecond + cfg.P2P.FlushThrottleTimeout = 10 * time.Millisecond return cfg }