Skip to content

Commit

Permalink
Move tendermint consensus config overrides (#1012)
Browse files Browse the repository at this point in the history
Addresses
celestiaorg/celestia-app#669 (comment)
by copying the consensus config overrides from celestiaorg/cosmos-sdk.

This PR should be merged in parallel with
celestiaorg/cosmos-sdk#284

Co-authored-by: Evan Forbes <42654277+evan-forbes@users.noreply.github.com>
  • Loading branch information
rootulp and evan-forbes authored Nov 16, 2022
1 parent e752469 commit 635be01
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/celestia-appd/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"fmt"
"io"
"os"
"time"

"github.com/celestiaorg/celestia-app/app"
"github.com/celestiaorg/celestia-app/app/encoding"
Expand Down Expand Up @@ -81,6 +82,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)
Expand Down

0 comments on commit 635be01

Please sign in to comment.