This commit is contained in:
Derek May 2018-03-14 15:11:42 -07:00
parent 62c4783fa2
commit 88917c95aa
2 changed files with 5 additions and 5 deletions

View file

@ -312,10 +312,10 @@ 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: 64, Nonce: 69,
ExtraData: hexutil.MustDecode("0x0000000000000000000000000000000000000000000000000000000000000000"), ExtraData: hexutil.MustDecode("0x0000000000000000000000000000000000000000000000000000000000000000"),
GasLimit: 3141592, GasLimit: 3141592,
Difficulty: big.NewInt(1073741824), Difficulty: big.NewInt(131072),
Alloc: decodePrealloc(mainnetAllocData), Alloc: decodePrealloc(mainnetAllocData),
} }
} }

View file

@ -24,19 +24,19 @@ import (
) )
var ( var (
MainnetGenesisHash = common.HexToHash("0x42b6a7d113fe1f4acc35da7d8f542d5d19794047433726451c25925ef2783dcd") // Mainnet genesis hash to enforce below configs on MainnetGenesisHash = common.HexToHash("0x13e772698cf10086381606d0b3afe952b60f1b3aa93eb4947028794b32b804c5") // Mainnet genesis hash to enforce below configs on
TestnetGenesisHash = common.HexToHash("0x42b6a7d113fe1f4acc35da7d8f542d5d19794047433726451c25925ef2783dcd") // Testnet genesis hash to enforce below configs on TestnetGenesisHash = common.HexToHash("0x42b6a7d113fe1f4acc35da7d8f542d5d19794047433726451c25925ef2783dcd") // Testnet genesis hash to enforce below configs on
) )
var ( var (
// MainnetChainConfig is the chain parameters to run a node on the main network. // MainnetChainConfig is the chain parameters to run a node on the main network.
MainnetChainConfig = &ChainConfig{ MainnetChainConfig = &ChainConfig{
ChainId: big.NewInt(87766), ChainId: big.NewInt(363341173),
HomesteadBlock: big.NewInt(0), HomesteadBlock: big.NewInt(0),
DAOForkBlock: nil, DAOForkBlock: nil,
DAOForkSupport: false, DAOForkSupport: false,
EIP150Block: big.NewInt(0), EIP150Block: big.NewInt(0),
EIP150Hash: common.HexToHash("0x42b6a7d113fe1f4acc35da7d8f542d5d19794047433726451c25925ef2783dcd"), EIP150Hash: common.HexToHash("0x13e772698cf10086381606d0b3afe952b60f1b3aa93eb4947028794b32b804c5"),
EIP155Block: big.NewInt(0), EIP155Block: big.NewInt(0),
EIP158Block: big.NewInt(0), EIP158Block: big.NewInt(0),
ByzantiumBlock: nil, ByzantiumBlock: nil,