From 9b22c68fc24eae81ec07a66aa66d6d3f8af6fef4 Mon Sep 17 00:00:00 2001 From: EOS Classic Date: Thu, 13 Sep 2018 23:50:33 +0900 Subject: [PATCH] core: disable header print --- core/genesis.go | 5 ----- 1 file changed, 5 deletions(-) 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{