diff --git a/core/genesis.go b/core/genesis.go index 34f953eab8..be8a39fd94 100644 --- a/core/genesis.go +++ b/core/genesis.go @@ -234,7 +234,6 @@ func (g *Genesis) ToBlock(db ethdb.Database) *types.Block { } } root := statedb.IntermediateRoot(false) - head := &types.Header{ Number: new(big.Int).SetUint64(g.Number), Nonce: types.EncodeNonce(g.Nonce), @@ -260,9 +259,6 @@ func (g *Genesis) ToBlock(db ethdb.Database) *types.Block { if g.Difficulty == nil { head.Difficulty = params.GenesisDifficulty } - data, _ := rlp.EncodeToBytes(head) - fmt.Printf("Genesis header rlp %v\n", common.Bytes2Hex(data)) - statedb.Commit(false) statedb.Database().TrieDB().Commit(root, true) @@ -343,7 +339,6 @@ func DefaultRinkebyGenesisBlock() *Genesis { } } -//Need alloc data // DefaultGoerliGenesisBlock returns the Goerli network genesis block. func DefaultGoerliGenesisBlock() *Genesis { return &Genesis{