From 3bd777e2a5f92addf52b3e671107b0759f55291e Mon Sep 17 00:00:00 2001 From: huuhadz2k <36265491+huuhadz2k@users.noreply.github.com> Date: Fri, 13 Apr 2018 12:45:15 +0700 Subject: [PATCH] =?UTF-8?q?S=C6=B0=CC=89a=20=C4=91=C3=B4=CC=89i=20k=C3=AA?= =?UTF-8?q?=CC=81t=20n=C3=B4=CC=81i=20t=C6=A1=CC=81i=20mainnet(ta=CC=A3m?= =?UTF-8?q?=20th=C6=A1=CC=80i)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/genesis.go | 4 ++-- params/config.go | 16 ++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/core/genesis.go b/core/genesis.go index 4867bbf0be..139c7d37a6 100644 --- a/core/genesis.go +++ b/core/genesis.go @@ -312,8 +312,8 @@ func GenesisBlockForTesting(db ethdb.Database, addr common.Address, balance *big func DefaultGenesisBlock() *Genesis { return &Genesis{ Config: params.MainnetChainConfig, - Nonce: 66, - ExtraData: hexutil.MustDecode("0x11bbe8db4e347b4e8c937c1c8370e4b5ed33adb3db69cbdb7a38e1e50b1b82fa"), + Nonce: 0xC261220, + ExtraData: hexutil.MustDecode("Sửa đổi sau khi hoàn thành"), GasLimit: 5000, Difficulty: big.NewInt(17179869184), Alloc: decodePrealloc(mainnetAllocData), diff --git a/params/config.go b/params/config.go index 484e07d77a..f41468dfbd 100644 --- a/params/config.go +++ b/params/config.go @@ -24,7 +24,7 @@ import ( ) 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 ) @@ -32,14 +32,14 @@ var ( // MainnetChainConfig is the chain parameters to run a node on the main network. MainnetChainConfig = &ChainConfig{ ChainId: big.NewInt(1), - HomesteadBlock: big.NewInt(1150000), - DAOForkBlock: big.NewInt(1920000), + HomesteadBlock: big.NewInt(0), + DAOForkBlock: nil, DAOForkSupport: true, - EIP150Block: big.NewInt(2463000), - EIP150Hash: common.HexToHash("0x2086799aeebeae135c246c65021c82b4e15a2c451340993aacfd2751886514f0"), - EIP155Block: big.NewInt(2675000), - EIP158Block: big.NewInt(2675000), - ByzantiumBlock: big.NewInt(4370000), + EIP150Block: big.NewInt(0), + EIP150Hash: common.HexToHash("sửa đổi sau khi hoàn thành!"), + EIP155Block: big.NewInt(100), + EIP158Block: big.NewInt(100), + ByzantiumBlock: big.NewInt(1000000), ConstantinopleBlock: nil, Ethash: new(EthashConfig), }