Skip to content

Commit

Permalink
change block timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
TongTianTaiShi committed Mar 26, 2024
1 parent 353c8df commit 62f45bb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/titand/cmd/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
cmtcfg "github.com/cometbft/cometbft/config"
serverconfig "github.com/cosmos/cosmos-sdk/server/config"
sdk "github.com/cosmos/cosmos-sdk/types"
"time"

"titan/app"
)
Expand All @@ -28,7 +29,7 @@ func initSDKConfig() {
// return cmtcfg.DefaultConfig if no custom configuration is required for the application.
func initCometBFTConfig() *cmtcfg.Config {
cfg := cmtcfg.DefaultConfig()

cfg.Consensus.TimeoutCommit = 5000 * time.Millisecond
// these values put a higher strain on node memory
// cfg.P2P.MaxNumInboundPeers = 100
// cfg.P2P.MaxNumOutboundPeers = 40
Expand Down

0 comments on commit 62f45bb

Please sign in to comment.