From cbe6c0911a0e24f3b8471edf196c0a0d303976da Mon Sep 17 00:00:00 2001 From: beer-1 <147697694+beer-1@users.noreply.github.com> Date: Tue, 21 Nov 2023 19:45:53 +0900 Subject: [PATCH] change block time to 3s --- cmd/initiad/config.go | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/cmd/initiad/config.go b/cmd/initiad/config.go index 3b5260ab..af3bfbac 100644 --- a/cmd/initiad/config.go +++ b/cmd/initiad/config.go @@ -52,9 +52,14 @@ func initAppConfig() (string, interface{}) { func initTendermintConfig() *tmcfg.Config { cfg := tmcfg.DefaultConfig() - // these values put a higher strain on node memory - // cfg.P2P.MaxNumInboundPeers = 100 - // cfg.P2P.MaxNumOutboundPeers = 40 + // block time from 5s to 3s + cfg.Consensus.TimeoutPropose = cfg.Consensus.TimeoutPropose * 3 / 5 + cfg.Consensus.TimeoutProposeDelta = cfg.Consensus.TimeoutProposeDelta * 3 / 5 + cfg.Consensus.TimeoutPrevote = cfg.Consensus.TimeoutPrevote * 3 / 5 + cfg.Consensus.TimeoutPrevoteDelta = cfg.Consensus.TimeoutPrevoteDelta * 3 / 5 + cfg.Consensus.TimeoutPrecommit = cfg.Consensus.TimeoutPrecommit * 3 / 5 + cfg.Consensus.TimeoutPrecommitDelta = cfg.Consensus.TimeoutPrecommitDelta * 3 / 5 + cfg.Consensus.TimeoutCommit = cfg.Consensus.TimeoutCommit * 3 / 5 return cfg }