Skip to content

Commit

Permalink
core: get back genesis alloc for nexty network (ethereum#191)
Browse files Browse the repository at this point in the history
  • Loading branch information
hadv authored May 23, 2019
1 parent 5ee5894 commit 8d12f38
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
20 changes: 11 additions & 9 deletions core/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -307,22 +307,24 @@ func GenesisBlockForTesting(db ethdb.Database, addr common.Address, balance *big
func DefaultGenesisBlock() *Genesis {
return &Genesis{
Config: params.MainnetChainConfig,
Nonce: 66,
ExtraData: hexutil.MustDecode("0x11bbe8db4e347b4e8c937c1c8370e4b5ed33adb3db69cbdb7a38e1e50b1b82fa"),
GasLimit: 5000,
Difficulty: big.NewInt(17179869184),
Timestamp: 1520505573,
Nonce: 0,
ExtraData: hexutil.MustDecode("0x00000000000000000000000000000000000000000000000000000000000000008fdfd61f626240a92dcd9461f18404250507004d61c0d779622e7384a4f7d8bafa1ca60f4634a313d4db56caa4b9bc49ed17d0f149bfeaa98adfc17e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"),
GasLimit: 42000000,
Difficulty: big.NewInt(1),
Alloc: decodePrealloc(mainnetAllocData),
}
}

// DefaultTestnetGenesisBlock returns the Ropsten network genesis block.
// DefaultTestnetGenesisBlock returns the Dccs network genesis block.
func DefaultTestnetGenesisBlock() *Genesis {
return &Genesis{
Config: params.TestnetChainConfig,
Nonce: 66,
ExtraData: hexutil.MustDecode("0x3535353535353535353535353535353535353535353535353535353535353535"),
GasLimit: 16777216,
Difficulty: big.NewInt(1048576),
Nonce: 0,
Timestamp: 1550310317,
ExtraData: hexutil.MustDecode("0x00000000000000000000000000000000000000000000000000000000000000003f9fc72f6992c64db93815c7eadcdbccf4d332d748c8a4ddf531b35b0cc066550ae7c2972e446c2c7e95447ae7968be2528325ebec24fff078c3cb230000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"),
GasLimit: 42000000,
Difficulty: big.NewInt(1),
Alloc: decodePrealloc(testnetAllocData),
}
}
Expand Down
4 changes: 2 additions & 2 deletions core/genesis_alloc.go

Large diffs are not rendered by default.

0 comments on commit 8d12f38

Please sign in to comment.