From 7ff75ac2f2f8a62d52367271194aa7889a5b5c88 Mon Sep 17 00:00:00 2001 From: Jeffrey Wilcke Date: Tue, 28 Feb 2017 23:18:13 +0100 Subject: cmd/utils, core, params: fork all teh things for dev mode (#3697) --- core/genesis.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'core') diff --git a/core/genesis.go b/core/genesis.go index d827ac1c1..9fa49f4d0 100644 --- a/core/genesis.go +++ b/core/genesis.go @@ -64,6 +64,9 @@ func WriteGenesisBlock(chainDb ethdb.Database, reader io.Reader) (*types.Block, if err := json.Unmarshal(contents, &genesis); err != nil { return nil, err } + if genesis.ChainConfig == nil { + genesis.ChainConfig = params.AllProtocolChanges + } // creating with empty hash always works statedb, _ := state.New(common.Hash{}, chainDb) -- cgit