aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/genesis.go3
1 files changed, 3 insertions, 0 deletions
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)