Upgrade for Cancun fork (Geth 1.14) #10

Merged
roysc merged 13 commits from update-geth1.13 into v5 2024-08-05 13:17:00 +00:00
Showing only changes of commit 14ce9e0fca - Show all commits

View File

@ -107,8 +107,11 @@ func (c *Config) Init(mode SnapshotMode) error {
viper.BindEnv(ETHDB_ANCIENT_TOML, ETHDB_ANCIENT)
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.AncientDBPath = viper.GetString(ETHDB_ANCIENT_TOML)
if len(c.Eth.AncientDBPath) == 0 {
c.Eth.AncientDBPath = c.Eth.DBPath + "/ancient"
}
switch mode {
case FileSnapshot: