aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/utils/flags.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/utils/flags.go')
-rw-r--r--cmd/utils/flags.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go
index fae1647b3..7b5915a05 100644
--- a/cmd/utils/flags.go
+++ b/cmd/utils/flags.go
@@ -814,17 +814,18 @@ func MustMakeChainConfigFromDb(ctx *cli.Context, db ethdb.Database) *core.ChainC
// Set any missing fields due to them being unset or system upgrade
if config.HomesteadBlock == nil {
if ctx.GlobalBool(TestNetFlag.Name) {
- config.HomesteadBlock = new(big.Int).Set(params.TestNetHomesteadBlock)
+ config.HomesteadBlock = params.TestNetHomesteadBlock
} else {
- config.HomesteadBlock = new(big.Int).Set(params.MainNetHomesteadBlock)
+ config.HomesteadBlock = params.MainNetHomesteadBlock
}
}
if config.DAOForkBlock == nil {
if ctx.GlobalBool(TestNetFlag.Name) {
- config.DAOForkBlock = new(big.Int).Set(params.TestNetDAOForkBlock)
+ config.DAOForkBlock = params.TestNetDAOForkBlock
} else {
- config.DAOForkBlock = new(big.Int).Set(params.MainNetDAOForkBlock)
+ config.DAOForkBlock = params.MainNetDAOForkBlock
}
+ config.DAOForkSupport = true
}
// Force override any existing configs if explicitly requested
switch {