Skip to content

Commit

Permalink
Move tendermint consensus config overrides (#1012)
Browse files Browse the repository at this point in the history
Addresses
#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 committed Dec 8, 2022
1 parent 72ca49a commit e434ea9
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 e434ea9

Please sign in to comment.