aboutsummaryrefslogtreecommitdiffstats
path: root/params
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2018-11-27 14:07:17 +0800
committerWei-Ning Huang <w@byzantine-lab.io>2019-06-12 17:27:19 +0800
commitd0f3b018bb0ff856fbd8eae9727149f1438e56a9 (patch)
treeb067819050d16e9b871cb53e2d2a2b7ca6361a07 /params
parent6267003986c9956359856b5f4e37304375b87411 (diff)
downloadgo-tangerine-d0f3b018bb0ff856fbd8eae9727149f1438e56a9.tar
go-tangerine-d0f3b018bb0ff856fbd8eae9727149f1438e56a9.tar.gz
go-tangerine-d0f3b018bb0ff856fbd8eae9727149f1438e56a9.tar.bz2
go-tangerine-d0f3b018bb0ff856fbd8eae9727149f1438e56a9.tar.lz
go-tangerine-d0f3b018bb0ff856fbd8eae9727149f1438e56a9.tar.xz
go-tangerine-d0f3b018bb0ff856fbd8eae9727149f1438e56a9.tar.zst
go-tangerine-d0f3b018bb0ff856fbd8eae9727149f1438e56a9.zip
tests: updates testadata
Diffstat (limited to 'params')
-rw-r--r--params/config.go30
1 files changed, 30 insertions, 0 deletions
diff --git a/params/config.go b/params/config.go
index 101ac87b1..0d2f15f8d 100644
--- a/params/config.go
+++ b/params/config.go
@@ -164,6 +164,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), 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