aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/utils
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2016-10-24 16:40:58 +0800
committerPéter Szilágyi <peterke@gmail.com>2016-10-29 17:10:00 +0800
commit8639b0fae975a5e65dea16fe5321168ac0aef128 (patch)
tree17cc166f2728551ed8999b95c690a423114e25ed /cmd/utils
parent00665a0b72ed93692daec21bbd79931828653228 (diff)
downloadgo-tangerine-8639b0fae975a5e65dea16fe5321168ac0aef128.tar.gz
go-tangerine-8639b0fae975a5e65dea16fe5321168ac0aef128.tar.zst
go-tangerine-8639b0fae975a5e65dea16fe5321168ac0aef128.zip
cmd/utils, core, params: explicitly pick reprice fork for fast sync
Diffstat (limited to 'cmd/utils')
-rw-r--r--cmd/utils/flags.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go
index 5e2dcf8c9..71777ce60 100644
--- a/cmd/utils/flags.go
+++ b/cmd/utils/flags.go
@@ -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):