From c9bb14e5dfb5f25fd003ffb06517078fd908bb08 Mon Sep 17 00:00:00 2001 From: Rootul P Date: Wed, 16 Nov 2022 12:02:43 -0700 Subject: [PATCH] Move tendermint consensus config overrides (#1012) Addresses https://github.com/celestiaorg/celestia-app/issues/669#issuecomment-1315796678 by copying the consensus config overrides from celestiaorg/cosmos-sdk. This PR should be merged in parallel with https://github.com/celestiaorg/cosmos-sdk/pull/284 Co-authored-by: Evan Forbes <42654277+evan-forbes@users.noreply.github.com> --- cmd/celestia-appd/cmd/root.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/celestia-appd/cmd/root.go b/cmd/celestia-appd/cmd/root.go index 6ba27998d7..4f213f2d0d 100644 --- a/cmd/celestia-appd/cmd/root.go +++ b/cmd/celestia-appd/cmd/root.go @@ -4,6 +4,7 @@ import ( "fmt" "io" "os" + "time" "github.com/celestiaorg/celestia-app/app" "github.com/celestiaorg/celestia-app/app/encoding" @@ -82,6 +83,9 @@ func NewRootCmd() *cobra.Command { tmCfg.Mempool.TTLNumBlocks = 10 tmCfg.Mempool.MaxTxBytes = 2 * 1024 * 1024 // 2 MiB tmCfg.Mempool.Version = "v1" // prioritized mempool + tmCfg.Consensus.TimeoutPropose = time.Second * 10 + tmCfg.Consensus.TimeoutCommit = time.Second * 8 + tmCfg.Consensus.SkipTimeoutCommit = false customAppTemplate, customAppConfig := initAppConfig() return server.InterceptConfigsPreRunHandler(cmd, customAppTemplate, customAppConfig, tmCfg)