Sửa đổi kết nối tới mainnet(tạm thời)

This commit is contained in:
huuhadz2k 2018-04-13 12:45:15 +07:00
parent 654475de02
commit 3bd777e2a5
2 changed files with 10 additions and 10 deletions

View file

@ -312,8 +312,8 @@ 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: 0xC261220,
ExtraData: hexutil.MustDecode("0x11bbe8db4e347b4e8c937c1c8370e4b5ed33adb3db69cbdb7a38e1e50b1b82fa"), ExtraData: hexutil.MustDecode("Sửa đổi sau khi hoàn thành"),
GasLimit: 5000, GasLimit: 5000,
Difficulty: big.NewInt(17179869184), Difficulty: big.NewInt(17179869184),
Alloc: decodePrealloc(mainnetAllocData), Alloc: decodePrealloc(mainnetAllocData),

View file

@ -24,7 +24,7 @@ import (
) )
var ( var (
MainnetGenesisHash = common.HexToHash("0xd4e56740f876aef8c010b86a40d5f56745a118d0906a34e69aec8c0db1cb8fa3") // Mainnet genesis hash to enforce below configs on MainnetGenesisHash = common.HexToHash("sửa đổi sau khi hoàn thành!") // Mainnet genesis hash to enforce below configs on
TestnetGenesisHash = common.HexToHash("0x41941023680923e0fe4d74a34bdac8141f2540e3ae90623718e47d66d1ca4a2d") // Testnet genesis hash to enforce below configs on TestnetGenesisHash = common.HexToHash("0x41941023680923e0fe4d74a34bdac8141f2540e3ae90623718e47d66d1ca4a2d") // Testnet genesis hash to enforce below configs on
) )
@ -32,14 +32,14 @@ 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(1), ChainId: big.NewInt(1),
HomesteadBlock: big.NewInt(1150000), HomesteadBlock: big.NewInt(0),
DAOForkBlock: big.NewInt(1920000), DAOForkBlock: nil,
DAOForkSupport: true, DAOForkSupport: true,
EIP150Block: big.NewInt(2463000), EIP150Block: big.NewInt(0),
EIP150Hash: common.HexToHash("0x2086799aeebeae135c246c65021c82b4e15a2c451340993aacfd2751886514f0"), EIP150Hash: common.HexToHash("sửa đổi sau khi hoàn thành!"),
EIP155Block: big.NewInt(2675000), EIP155Block: big.NewInt(100),
EIP158Block: big.NewInt(2675000), EIP158Block: big.NewInt(100),
ByzantiumBlock: big.NewInt(4370000), ByzantiumBlock: big.NewInt(1000000),
ConstantinopleBlock: nil, ConstantinopleBlock: nil,
Ethash: new(EthashConfig), Ethash: new(EthashConfig),
} }