aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-01-05 18:54:45 +0800
committerGitHub <noreply@github.com>2017-01-05 18:54:45 +0800
commitbbce726c8a85e72141d9d7e690711738c09ede3b (patch)
tree1aae05640cf82e03f242a086cb4379072404c4de /cmd
parentbbc4ea4ae8e8a962deae3d5693d9d4a9376eab88 (diff)
parenta1798a81881dba681e7cd2881f329fd1c2fc4be7 (diff)
downloaddexon-bbce726c8a85e72141d9d7e690711738c09ede3b.tar.gz
dexon-bbce726c8a85e72141d9d7e690711738c09ede3b.tar.zst
dexon-bbce726c8a85e72141d9d7e690711738c09ede3b.zip
Merge pull request #3515 from bas-vk/exportropsten
core,cmd/utils: bugfix for ropsten dump imports
Diffstat (limited to 'cmd')
-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 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{})
td>1-8/+10 * Add OPENSSLRPATH to MAKE_ENV.grembo2015-04-141-9/+10 * - Update to 2.1.4vsevolod2015-03-041-1/+1 * Attempt to unbreak indexantoine2015-01-031-1/+1 * - try to guess SHLIBVER for libressldinoex2015-01-031-0/+5 * Remove support for pkg_installbapt2014-09-011-14/+0 * - improve commentsdinoex2014-07-161-18/+10 * - remove WITH_OPENSSL_HACK7dinoex2014-03-031-9/+1 * Adjust the LDFLAGS from USE_NCURSES and USE_OPENSSL to fix build with clang:bapt2012-12-111-1/+1 * - new option WITH_OPENSSL_HACK7=yesdinoex2012-09-191-1/+9 * - cleanup commentsdinoex2012-09-121-3/+1 * - fix warning for option WITH_PKGNGdinoex2012-09-121-1/+1 * Make USE_NCURSES and USE_OPENSSL work with pkgng in case people are usingbapt2012-04-181-1/+15 * - bump OPENSSL_SHLIBVERdinoex2012-04-151-3/+3 * - Add LDFLAGS to CONFIGURE_ENV and MAKE_ENV (as it was done with LDFLAGS)amdmi32011-09-241-7/+1 * - bump SHLIBVER for all versionsdinoex2010-01-121-11/+3 * - fix build for OSVERSION 800105dinoex2009-07-221-1/+9 * - Fix autodetec with invalid PKG_DBDIRdinoex2009-05-071-1/+7 * - remove WITH_OPENSSL_BETAdinoex2009-01-101-17/+1