Skip to content

Commit

Permalink
chore: use the DefaultConsensusConfig() for initializing a node (#2576)
Browse files Browse the repository at this point in the history
This is something that wasn't backported as part of #2188

Note that this changes the default indexer to `null`
  • Loading branch information
cmwaters authored Sep 28, 2023
1 parent decaa36 commit 0b76b2c
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions cmd/celestia-appd/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"io"
"os"
"path/filepath"
"time"

"github.com/celestiaorg/celestia-app/pkg/appconsts"
qgbcmd "github.com/celestiaorg/celestia-app/x/qgb/client"
Expand Down Expand Up @@ -37,7 +36,6 @@ import (
genutilcli "github.com/cosmos/cosmos-sdk/x/genutil/client/cli"
"github.com/spf13/cast"
"github.com/spf13/cobra"
tmcfg "github.com/tendermint/tendermint/config"
tmcli "github.com/tendermint/tendermint/libs/cli"
"github.com/tendermint/tendermint/libs/log"
dbm "github.com/tendermint/tm-db"
Expand Down Expand Up @@ -84,19 +82,7 @@ func NewRootCmd() *cobra.Command {
}

// Override the default tendermint config for celestia-app
tmCfg := tmcfg.DefaultConfig()

// Set broadcast timeout to be 50 seconds in order to avoid timeouts for long block times
// TODO: make TimeoutBroadcastTx configurable per https://github.com/celestiaorg/celestia-app/issues/1034
tmCfg.RPC.TimeoutBroadcastTxCommit = 50 * time.Second
tmCfg.RPC.MaxBodyBytes = int64(8388608) // 8 MiB
tmCfg.Mempool.TTLNumBlocks = 10
tmCfg.Mempool.MaxTxBytes = 2 * 1024 * 1024 // 2 MiB
tmCfg.Mempool.Version = "v1" // prioritized mempool
tmCfg.Consensus.TimeoutPropose = appconsts.TimeoutPropose
tmCfg.Consensus.TimeoutCommit = appconsts.TimeoutCommit
tmCfg.Consensus.SkipTimeoutCommit = false

tmCfg := app.DefaultConsensusConfig()
customAppTemplate, customAppConfig := initAppConfig()

err = server.InterceptConfigsPreRunHandler(cmd, customAppTemplate, customAppConfig, tmCfg)
Expand Down

0 comments on commit 0b76b2c

Please sign in to comment.