cmd/utils, core, params: explicitly pick reprice fork for fast sync
This commit is contained in:
@ -804,6 +804,13 @@ func MakeChainConfigFromDb(ctx *cli.Context, db ethdb.Database) *core.ChainConfi
|
||||
config.HomesteadGasRepriceBlock = params.MainNetHomesteadGasRepriceBlock
|
||||
}
|
||||
}
|
||||
if config.HomesteadGasRepriceHash == (common.Hash{}) {
|
||||
if ctx.GlobalBool(TestNetFlag.Name) {
|
||||
config.HomesteadGasRepriceHash = params.TestNetHomesteadGasRepriceHash
|
||||
} else {
|
||||
config.HomesteadGasRepriceHash = params.MainNetHomesteadGasRepriceHash
|
||||
}
|
||||
}
|
||||
// Force override any existing configs if explicitly requested
|
||||
switch {
|
||||
case ctx.GlobalBool(SupportDAOFork.Name):
|
||||
|
Reference in New Issue
Block a user