diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-01-05 18:54:45 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-05 18:54:45 +0800 |
commit | bbce726c8a85e72141d9d7e690711738c09ede3b (patch) | |
tree | 1aae05640cf82e03f242a086cb4379072404c4de /cmd/utils | |
parent | bbc4ea4ae8e8a962deae3d5693d9d4a9376eab88 (diff) | |
parent | a1798a81881dba681e7cd2881f329fd1c2fc4be7 (diff) | |
download | go-tangerine-bbce726c8a85e72141d9d7e690711738c09ede3b.tar go-tangerine-bbce726c8a85e72141d9d7e690711738c09ede3b.tar.gz go-tangerine-bbce726c8a85e72141d9d7e690711738c09ede3b.tar.bz2 go-tangerine-bbce726c8a85e72141d9d7e690711738c09ede3b.tar.lz go-tangerine-bbce726c8a85e72141d9d7e690711738c09ede3b.tar.xz go-tangerine-bbce726c8a85e72141d9d7e690711738c09ede3b.tar.zst go-tangerine-bbce726c8a85e72141d9d7e690711738c09ede3b.zip |
Merge pull request #3515 from bas-vk/exportropsten
core,cmd/utils: bugfix for ropsten dump imports
Diffstat (limited to 'cmd/utils')
-rw-r--r-- | cmd/utils/flags.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go index 9df891f78..c5f38fe93 100644 --- a/cmd/utils/flags.go +++ b/cmd/utils/flags.go @@ -924,11 +924,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{}) |