@@ -10,7 +10,6 @@ import (
10
10
"github.com/cosmos/cosmos-sdk/client/config"
11
11
"github.com/cosmos/cosmos-sdk/client/debug"
12
12
"github.com/cosmos/cosmos-sdk/client/flags"
13
- pruningtypes "github.com/cosmos/cosmos-sdk/pruning/types"
14
13
sdk "github.com/cosmos/cosmos-sdk/types"
15
14
"github.com/evmos/evmos/v12/crypto/hd"
16
15
@@ -31,6 +30,7 @@ import (
31
30
dbm "github.com/tendermint/tm-db"
32
31
33
32
rdkserver "github.com/dymensionxyz/dymension-rdk/server"
33
+ rdkserverconfig "github.com/dymensionxyz/dymension-rdk/server/config"
34
34
rdk_utils "github.com/dymensionxyz/dymension-rdk/utils"
35
35
dymintconf "github.com/dymensionxyz/dymint/config"
36
36
"github.com/dymensionxyz/rollapp-evm/app"
@@ -132,23 +132,20 @@ func initTendermintConfig() *tmcfg.Config {
132
132
// initAppConfig helps to override default appConfig template and configs.
133
133
// return "", nil if no custom configuration is required for the application.
134
134
func initAppConfig () (string , interface {}) {
135
- customAppTemplate , customAppConfig := evmconfig .AppConfig ("" )
136
-
137
- srvCfg , ok := customAppConfig .(evmconfig.Config )
138
- if ! ok {
139
- panic (fmt .Errorf ("unknown app config type %T" , customAppConfig ))
140
- }
141
-
142
- //Default pruning for a rollapp, represent 2 weeks of states kept while pruning in intervals of 10 minutes
143
- srvCfg .Pruning = pruningtypes .PruningOptionCustom
144
- srvCfg .PruningInterval = "18000"
145
- srvCfg .PruningKeepRecent = "6048000"
146
-
147
- //Changing the default address to global instead of localhost
148
- srvCfg .JSONRPC .Address = "0.0.0.0:8545"
149
- srvCfg .JSONRPC .WsAddress = "0.0.0.0:8546"
150
-
151
- return customAppTemplate , srvCfg
135
+ customAppTemplate , customAppConfig := evmconfig .AppConfig ("" )
136
+
137
+ srvCfg , ok := customAppConfig .(evmconfig.Config )
138
+ if ! ok {
139
+ panic (fmt .Errorf ("unknown app config type %T" , customAppConfig ))
140
+ }
141
+
142
+ rdkserverconfig .SetDefaultPruningSettings (& srvCfg .Config )
143
+
144
+ // Changing the default address to global instead of localhost
145
+ srvCfg .JSONRPC .Address = "0.0.0.0:8545"
146
+ srvCfg .JSONRPC .WsAddress = "0.0.0.0:8546"
147
+
148
+ return customAppTemplate , srvCfg
152
149
}
153
150
154
151
func initRootCmd (
0 commit comments