From 08fd0715f9504edcc81029ffebee794b06fe4653 Mon Sep 17 00:00:00 2001 From: obscuren Date: Tue, 3 Mar 2015 21:09:29 +0100 Subject: [PATCH] updated genesis --- cmd/ethereum/flags.go | 1 - core/genesis.go | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/cmd/ethereum/flags.go b/cmd/ethereum/flags.go index fe848397c..8f414364a 100644 --- a/cmd/ethereum/flags.go +++ b/cmd/ethereum/flags.go @@ -120,7 +120,6 @@ func Init() { flag.BoolVar(&StartMining, "mine", false, "start mining") flag.BoolVar(&StartJsConsole, "js", false, "launches javascript console") flag.BoolVar(&PrintVersion, "version", false, "prints version number") - flag.IntVar(&MinerThreads, "minerthreads", runtime.NumCPU(), "number of miner threads") // Network stuff var ( diff --git a/core/genesis.go b/core/genesis.go index 3e90aa91d..78c7a353a 100644 --- a/core/genesis.go +++ b/core/genesis.go @@ -28,6 +28,9 @@ func GenesisBlock(db ethutil.Database) *types.Block { genesis.Header().GasLimit = big.NewInt(1000000) genesis.Header().GasUsed = ethutil.Big0 genesis.Header().Time = 0 + genesis.Header().MixDigest = make([]byte, 32) + genesis.Header().SeedHash = make([]byte, 32) + genesis.Td = ethutil.Big0 genesis.SetUncles([]*types.Header{}) @@ -50,6 +53,7 @@ func GenesisBlock(db ethutil.Database) *types.Block { } statedb.Sync() genesis.Header().Root = statedb.Root() + fmt.Println(genesis) return genesis }