diff --git a/cosmos/config/config.go b/cosmos/config/config.go index 2bbf8648b..8fffcae5b 100644 --- a/cosmos/config/config.go +++ b/cosmos/config/config.go @@ -279,6 +279,15 @@ func readConfigFromAppOptsParser(parser AppOptionsParser) (*Config, error) { return nil, err } + if conf.Polar.LegacyTxPool.Journal == "" { + conf.Polar.LegacyTxPool.Journal, err = + parser.GetString(sdkflags.FlagHome) + if err != nil { + return nil, err + } + conf.Polar.LegacyTxPool.Journal += "/data/transactions.rlp" + } + if conf.Polar.LegacyTxPool.Rejournal, err = parser.GetTimeDuration(flags.ReJournal); err != nil { return nil, err diff --git a/eth/polar/config.go b/eth/polar/config.go index a5e0c9e81..2f25f038e 100644 --- a/eth/polar/config.go +++ b/eth/polar/config.go @@ -51,12 +51,14 @@ func DefaultConfig() *Config { gpoConfig.Default = big.NewInt(gpoDefault) minerCfg := miner.DefaultConfig minerCfg.Etherbase = common.HexToAddress(developmentCoinbase) - // TODO: setup proper command line flags + legacyPool := legacypool.DefaultConfig + legacyPool.Journal = "" + return &Config{ Chain: *params.DefaultChainConfig, Miner: minerCfg, GPO: gpoConfig, - LegacyTxPool: legacypool.DefaultConfig, + LegacyTxPool: legacyPool, RPCGasCap: ethconfig.Defaults.RPCGasCap, RPCTxFeeCap: ethconfig.Defaults.RPCTxFeeCap, RPCEVMTimeout: ethconfig.Defaults.RPCEVMTimeout,