diff options
author | Jeffrey Wilcke <jeffrey@ethereum.org> | 2017-03-01 06:18:13 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-01 06:18:13 +0800 |
commit | 7ff75ac2f2f8a62d52367271194aa7889a5b5c88 (patch) | |
tree | 5df5082a037b3479fb4fc714c7dc48d41d169416 /core | |
parent | 167be7f260763bb21e703d304b553142d5422266 (diff) | |
download | go-tangerine-7ff75ac2f2f8a62d52367271194aa7889a5b5c88.tar.gz go-tangerine-7ff75ac2f2f8a62d52367271194aa7889a5b5c88.tar.zst go-tangerine-7ff75ac2f2f8a62d52367271194aa7889a5b5c88.zip |
cmd/utils, core, params: fork all teh things for dev mode (#3697)
Diffstat (limited to 'core')
-rw-r--r-- | core/genesis.go | 3 |
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) |