Skip to content

Commit

Permalink
Move tendermint consensus config overrides (celestiaorg#1012)
Browse files Browse the repository at this point in the history
Addresses
celestiaorg#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
2 people authored and rach-id committed Nov 17, 2022
1 parent f93071d commit c9bb14e
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 @@ -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)
Expand Down

0 comments on commit c9bb14e

Please sign in to comment.