@@ -6,11 +6,6 @@ import (
6
6
"os"
7
7
"path/filepath"
8
8
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
-
14
9
"github.com/CosmWasm/wasmd/x/wasm"
15
10
wasmkeeper "github.com/CosmWasm/wasmd/x/wasm/keeper"
16
11
"github.com/cosmos/cosmos-sdk/baseapp"
@@ -20,6 +15,7 @@ import (
20
15
"github.com/cosmos/cosmos-sdk/client/flags"
21
16
"github.com/cosmos/cosmos-sdk/client/keys"
22
17
"github.com/cosmos/cosmos-sdk/client/rpc"
18
+ "github.com/cosmos/cosmos-sdk/codec"
23
19
"github.com/cosmos/cosmos-sdk/server"
24
20
serverconfig "github.com/cosmos/cosmos-sdk/server/config"
25
21
servertypes "github.com/cosmos/cosmos-sdk/server/types"
@@ -31,6 +27,8 @@ import (
31
27
banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
32
28
"github.com/cosmos/cosmos-sdk/x/crisis"
33
29
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"
34
32
"github.com/sei-protocol/sei-chain/wasmbinding"
35
33
"github.com/spf13/cast"
36
34
"github.com/spf13/cobra"
@@ -91,15 +89,7 @@ func NewRootCmd() (*cobra.Command, params.EncodingConfig) {
91
89
92
90
customAppTemplate , customAppConfig := initAppConfig ()
93
91
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 )
103
93
},
104
94
}
105
95
0 commit comments