diff options
author | obscuren <geffobscura@gmail.com> | 2015-03-05 16:14:58 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-03-05 16:14:58 +0800 |
commit | c47866d25174bd783ee6bcd5b400d81d7bf598bb (patch) | |
tree | 01c71c40981f4f75e1721011006d2da96dfc3c2d /core/genesis.go | |
parent | 15f491e5007d1507f20d0edce36cc9c0bd5cbd37 (diff) | |
download | go-tangerine-c47866d25174bd783ee6bcd5b400d81d7bf598bb.tar.gz go-tangerine-c47866d25174bd783ee6bcd5b400d81d7bf598bb.tar.zst go-tangerine-c47866d25174bd783ee6bcd5b400d81d7bf598bb.zip |
Miner fixes and updates (including miner)
Diffstat (limited to 'core/genesis.go')
-rw-r--r-- | core/genesis.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/genesis.go b/core/genesis.go index f675be53f..a3f5dfb38 100644 --- a/core/genesis.go +++ b/core/genesis.go @@ -22,8 +22,10 @@ var ZeroHash512 = make([]byte, 64) var EmptyShaList = crypto.Sha3(ethutil.Encode([]interface{}{})) var EmptyListRoot = crypto.Sha3(ethutil.Encode("")) +var GenesisDiff = big.NewInt(131072) + func GenesisBlock(db ethutil.Database) *types.Block { - genesis := types.NewBlock(ZeroHash256, ZeroHash160, nil, big.NewInt(2048), 42, "") + genesis := types.NewBlock(ZeroHash256, ZeroHash160, nil, GenesisDiff, 42, "") genesis.Header().Number = ethutil.Big0 genesis.Header().GasLimit = big.NewInt(1000000) genesis.Header().GasUsed = ethutil.Big0 @@ -53,7 +55,6 @@ func GenesisBlock(db ethutil.Database) *types.Block { } statedb.Sync() genesis.Header().Root = statedb.Root() - fmt.Println(genesis) return genesis } |