aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/utils
diff options
context:
space:
mode:
authorBas van Kervel <basvankervel@gmail.com>2017-01-05 18:31:09 +0800
committerBas van Kervel <basvankervel@gmail.com>2017-01-05 18:31:57 +0800
commita1798a81881dba681e7cd2881f329fd1c2fc4be7 (patch)
tree72926965543887babb16ed29aa689cdf6e32741a /cmd/utils
parent0fac8cba479a7cd90c17307b8795a0f836877c2e (diff)
downloadgo-tangerine-a1798a81881dba681e7cd2881f329fd1c2fc4be7.tar.gz
go-tangerine-a1798a81881dba681e7cd2881f329fd1c2fc4be7.tar.zst
go-tangerine-a1798a81881dba681e7cd2881f329fd1c2fc4be7.zip
core,cmd/utils: bugfix for ropsten dump imports
Diffstat (limited to 'cmd/utils')
-rw-r--r--cmd/utils/flags.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go
index 1cb975a17..a281e5076 100644
--- a/cmd/utils/flags.go
+++ b/cmd/utils/flags.go
@@ -925,11 +925,19 @@ func MakeChain(ctx *cli.Context, stack *node.Node) (chain *core.BlockChain, chai
chainDb = MakeChainDatabase(ctx, stack)
if ctx.GlobalBool(OlympicFlag.Name) {
+ _, err := core.WriteOlympicGenesisBlock(chainDb)
+ if err != nil {
+ glog.Fatalln(err)
+ }
+ }
+
+ if ctx.GlobalBool(TestNetFlag.Name) {
_, err := core.WriteTestNetGenesisBlock(chainDb)
if err != nil {
glog.Fatalln(err)
}
}
+
chainConfig := MakeChainConfigFromDb(ctx, chainDb)
pow := pow.PoW(core.FakePow{})