From e0c98f82dc9f1383c2651248c49abdf7d90305d4 Mon Sep 17 00:00:00 2001 From: Admin Date: Thu, 26 Apr 2018 22:59:33 +0700 Subject: [PATCH] Fix genesis --- core/genesis.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/core/genesis.go b/core/genesis.go index 0c7a83ee6e..a89e7821f8 100644 --- a/core/genesis.go +++ b/core/genesis.go @@ -189,7 +189,7 @@ func SetupGenesisBlock(db ethdb.Database, genesis *Genesis) (*params.ChainConfig // Special case: don't change the existing config of a non-mainnet chain if no new // config is supplied. These chains would get AllProtocolChanges (and a compat error) // if we just continued here. - if genesis == nil && stored != params./ { + if genesis == nil && stored != params.MainnetGenesisHash { return storedcfg, stored, nil } @@ -210,7 +210,7 @@ func (g *Genesis) configOrDefault(ghash common.Hash) *params.ChainConfig { switch { case g != nil: return g.Config - case ghash == params./: + case ghash == params.MainnetGenesisHash: return params.MainnetChainConfig case ghash == params.TestnetGenesisHash: return params.TestnetChainConfig @@ -313,7 +313,8 @@ func DefaultGenesisBlock() *Genesis { return &Genesis{ Config: params.MainnetChainConfig, Nonce: 66, - GasLimit: 2100000, + ExtraData: hexutil.MustDecode("0x06219483E217c9aD479f76a95426f689eF4D5951"), + GasLimit: 3141592, Difficulty: big.NewInt(16777216), Alloc: decodePrealloc(mainnetAllocData), }