mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 10:22:23 +00:00
core: disable header print
This commit is contained in:
parent
50eb9d1527
commit
9b22c68fc2
1 changed files with 0 additions and 5 deletions
|
|
@ -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{
|
||||
|
|
|
|||
Loading…
Reference in a new issue