default ancient path
This commit is contained in:
parent
d54817c33c
commit
14ce9e0fca
@ -107,8 +107,11 @@ func (c *Config) Init(mode SnapshotMode) error {
|
|||||||
viper.BindEnv(ETHDB_ANCIENT_TOML, ETHDB_ANCIENT)
|
viper.BindEnv(ETHDB_ANCIENT_TOML, ETHDB_ANCIENT)
|
||||||
viper.BindEnv(ETHDB_PATH_TOML, ETHDB_PATH)
|
viper.BindEnv(ETHDB_PATH_TOML, ETHDB_PATH)
|
||||||
|
|
||||||
c.Eth.AncientDBPath = viper.GetString(ETHDB_ANCIENT_TOML)
|
|
||||||
c.Eth.DBPath = viper.GetString(ETHDB_PATH_TOML)
|
c.Eth.DBPath = viper.GetString(ETHDB_PATH_TOML)
|
||||||
|
c.Eth.AncientDBPath = viper.GetString(ETHDB_ANCIENT_TOML)
|
||||||
|
if len(c.Eth.AncientDBPath) == 0 {
|
||||||
|
c.Eth.AncientDBPath = c.Eth.DBPath + "/ancient"
|
||||||
|
}
|
||||||
|
|
||||||
switch mode {
|
switch mode {
|
||||||
case FileSnapshot:
|
case FileSnapshot:
|
||||||
|
Loading…
Reference in New Issue
Block a user