Skip to content

Commit 58d0075

Browse files
authored
Do not set tm configs on all seid commands now that validators have m… (#77)
Do not set tm configs on all seid commands now that validators have migrated
1 parent 89871d6 commit 58d0075

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

cmd/seid/cmd/root.go

+4-14
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,6 @@ import (
66
"os"
77
"path/filepath"
88

9-
"github.com/cosmos/cosmos-sdk/codec"
10-
"github.com/sei-protocol/sei-chain/app"
11-
"github.com/sei-protocol/sei-chain/app/params"
12-
tmcfg "github.com/tendermint/tendermint/config"
13-
149
"github.com/CosmWasm/wasmd/x/wasm"
1510
wasmkeeper "github.com/CosmWasm/wasmd/x/wasm/keeper"
1611
"github.com/cosmos/cosmos-sdk/baseapp"
@@ -20,6 +15,7 @@ import (
2015
"github.com/cosmos/cosmos-sdk/client/flags"
2116
"github.com/cosmos/cosmos-sdk/client/keys"
2217
"github.com/cosmos/cosmos-sdk/client/rpc"
18+
"github.com/cosmos/cosmos-sdk/codec"
2319
"github.com/cosmos/cosmos-sdk/server"
2420
serverconfig "github.com/cosmos/cosmos-sdk/server/config"
2521
servertypes "github.com/cosmos/cosmos-sdk/server/types"
@@ -31,6 +27,8 @@ import (
3127
banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
3228
"github.com/cosmos/cosmos-sdk/x/crisis"
3329
genutilcli "github.com/cosmos/cosmos-sdk/x/genutil/client/cli"
30+
"github.com/sei-protocol/sei-chain/app"
31+
"github.com/sei-protocol/sei-chain/app/params"
3432
"github.com/sei-protocol/sei-chain/wasmbinding"
3533
"github.com/spf13/cast"
3634
"github.com/spf13/cobra"
@@ -91,15 +89,7 @@ func NewRootCmd() (*cobra.Command, params.EncodingConfig) {
9189

9290
customAppTemplate, customAppConfig := initAppConfig()
9391

94-
preRunHandlerResults := server.InterceptConfigsPreRunHandler(cmd, customAppTemplate, customAppConfig)
95-
serverCtx := server.GetServerContextFromCmd(cmd)
96-
tmCfg := serverCtx.Config
97-
98-
// Override default config.toml values with optimized values
99-
params.SetTendermintConfigs(tmCfg)
100-
tmcfg.WriteConfigFile(filepath.Join(tmCfg.RootDir, "config", "config.toml"), tmCfg)
101-
102-
return preRunHandlerResults
92+
return server.InterceptConfigsPreRunHandler(cmd, customAppTemplate, customAppConfig)
10393
},
10494
}
10595

0 commit comments

Comments
 (0)