diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-11-27 14:07:17 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2018-12-19 20:54:27 +0800 |
commit | 928b22db61660ea4e68a0ae99e0392a27cc1cfc1 (patch) | |
tree | 14d6ad4e9f8ade49c2e41b63e82a24258b7c3a3f /params | |
parent | 283290ed6309a7681f1eafb628602513d4f3aee2 (diff) | |
download | dexon-928b22db61660ea4e68a0ae99e0392a27cc1cfc1.tar dexon-928b22db61660ea4e68a0ae99e0392a27cc1cfc1.tar.gz dexon-928b22db61660ea4e68a0ae99e0392a27cc1cfc1.tar.bz2 dexon-928b22db61660ea4e68a0ae99e0392a27cc1cfc1.tar.lz dexon-928b22db61660ea4e68a0ae99e0392a27cc1cfc1.tar.xz dexon-928b22db61660ea4e68a0ae99e0392a27cc1cfc1.tar.zst dexon-928b22db61660ea4e68a0ae99e0392a27cc1cfc1.zip |
tests: updates testadata
Diffstat (limited to 'params')
-rw-r--r-- | params/config.go | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/params/config.go b/params/config.go index a64dc48be..fa24d6e17 100644 --- a/params/config.go +++ b/params/config.go @@ -155,6 +155,36 @@ var ( TestChainConfig = &ChainConfig{big.NewInt(1), big.NewInt(0), nil, false, big.NewInt(0), common.Hash{}, big.NewInt(0), big.NewInt(0), big.NewInt(0), big.NewInt(0), nil, new(EthashConfig), nil, nil} TestRules = TestChainConfig.Rules(new(big.Int)) + + // Ethereum MainnetChainConfig is the chain parameters to run a node on the main network. + EthereumMainnetChainConfig = &ChainConfig{ + ChainID: big.NewInt(1), + HomesteadBlock: big.NewInt(1150000), + DAOForkBlock: big.NewInt(1920000), + DAOForkSupport: true, + EIP150Block: big.NewInt(2463000), + EIP150Hash: common.HexToHash("0x2086799aeebeae135c246c65021c82b4e15a2c451340993aacfd2751886514f0"), + EIP155Block: big.NewInt(2675000), + EIP158Block: big.NewInt(2675000), + ByzantiumBlock: big.NewInt(4370000), + ConstantinopleBlock: nil, + Ethash: new(EthashConfig), + } + + // Ethereum TestnetChainConfig contains the chain parameters to run a node on the Ropsten test network. + EthereumTestnetChainConfig = &ChainConfig{ + ChainID: big.NewInt(3), + HomesteadBlock: big.NewInt(0), + DAOForkBlock: nil, + DAOForkSupport: true, + EIP150Block: big.NewInt(0), + EIP150Hash: common.HexToHash("0x41941023680923e0fe4d74a34bdac8141f2540e3ae90623718e47d66d1ca4a2d"), + EIP155Block: big.NewInt(10), + EIP158Block: big.NewInt(10), + ByzantiumBlock: big.NewInt(1700000), + ConstantinopleBlock: big.NewInt(4230000), + Ethash: new(EthashConfig), + } ) // TrustedCheckpoint represents a set of post-processed trie roots (CHT and |