mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
update default genesis blocks
This commit is contained in:
parent
d70b34d02b
commit
6e718ed3de
1 changed files with 10 additions and 8 deletions
|
|
@ -309,10 +309,12 @@ func GenesisBlockForTesting(db ethdb.Database, addr common.Address, balance *big
|
||||||
func DefaultGenesisBlock() *Genesis {
|
func DefaultGenesisBlock() *Genesis {
|
||||||
return &Genesis{
|
return &Genesis{
|
||||||
Config: params.MainnetChainConfig,
|
Config: params.MainnetChainConfig,
|
||||||
Nonce: 66,
|
Nonce: 2184,
|
||||||
ExtraData: hexutil.MustDecode("0x11bbe8db4e347b4e8c937c1c8370e4b5ed33adb3db69cbdb7a38e1e50b1b82fa"),
|
Timestamp: 1485633600,
|
||||||
GasLimit: 5000,
|
ExtraData: hexutil.MustDecode("0x4a756d6275636b734545"),
|
||||||
Difficulty: big.NewInt(17179869184),
|
GasLimit: 134217728,
|
||||||
|
Difficulty: big.NewInt(80000000000),
|
||||||
|
Coinbase: common.StringToAddress("3333333333333333333333333333333333333333"),
|
||||||
Alloc: decodePrealloc(mainnetAllocData),
|
Alloc: decodePrealloc(mainnetAllocData),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -321,10 +323,10 @@ func DefaultGenesisBlock() *Genesis {
|
||||||
func DefaultTestnetGenesisBlock() *Genesis {
|
func DefaultTestnetGenesisBlock() *Genesis {
|
||||||
return &Genesis{
|
return &Genesis{
|
||||||
Config: params.TestnetChainConfig,
|
Config: params.TestnetChainConfig,
|
||||||
Nonce: 66,
|
Nonce: 273,
|
||||||
ExtraData: hexutil.MustDecode("0x3535353535353535353535353535353535353535353535353535353535353535"),
|
ExtraData: hexutil.MustDecode("0x4a756d6275636b734545"),
|
||||||
GasLimit: 16777216,
|
GasLimit: 134217728,
|
||||||
Difficulty: big.NewInt(1048576),
|
Difficulty: big.NewInt(983040),
|
||||||
Alloc: decodePrealloc(testnetAllocData),
|
Alloc: decodePrealloc(testnetAllocData),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue