diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-11-26 13:54:28 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-03-12 12:19:09 +0800 |
commit | 61cb6c4428d46897b1cb812f431289cdbb9a4433 (patch) | |
tree | c37d1946a7557fb4e009adf9c0cd64ee1da9d8cd /params | |
parent | f79bf330b4b649ea74d54faf749214c14f32af9c (diff) | |
download | dexon-61cb6c4428d46897b1cb812f431289cdbb9a4433.tar.gz dexon-61cb6c4428d46897b1cb812f431289cdbb9a4433.tar.zst dexon-61cb6c4428d46897b1cb812f431289cdbb9a4433.zip |
core: add Taipei testnet (#47)
Add a new testnet named Taipei.
Diffstat (limited to 'params')
-rw-r--r-- | params/bootnodes.go | 10 | ||||
-rw-r--r-- | params/config.go | 31 |
2 files changed, 38 insertions, 3 deletions
diff --git a/params/bootnodes.go b/params/bootnodes.go index 3c6ec8555..742b696db 100644 --- a/params/bootnodes.go +++ b/params/bootnodes.go @@ -23,9 +23,15 @@ var MainnetBootnodes = []string{ } // TestnetBootnodes are the enode URLs of the P2P bootstrap nodes running on the -// Ropsten test network. +// Taiwan test network. var TestnetBootnodes = []string{ - "enode://0478aa13c91aa0db8e93b668313b7eb0532fbdb24f64772375373b14dbe326c238ad09ab4469f6442c9a9753f1275aeec2e531912c14a958ed1feb4ae7e227ef@127.0.0.1:30301", + "enode://0478aa13c91aa0db8e93b668313b7eb0532fbdb24f64772375373b14dbe326c238ad09ab4469f6442c9a9753f1275aeec2e531912c14a958ed1feb4ae7e227ef@35.187.157.218:30301", +} + +// TestnetBootnodes are the enode URLs of the P2P bootstrap nodes running on the +// Taipei test network. +var TaipeiBootnodes = []string{ + "enode://0478aa13c91aa0db8e93b668313b7eb0532fbdb24f64772375373b14dbe326c238ad09ab4469f6442c9a9753f1275aeec2e531912c14a958ed1feb4ae7e227ef@35.229.247.207:30301", } // DiscoveryV5Bootnodes are the enode URLs of the P2P bootstrap nodes for the diff --git a/params/config.go b/params/config.go index df5a3782d..8fcfbfa93 100644 --- a/params/config.go +++ b/params/config.go @@ -71,7 +71,7 @@ var ( BloomRoot: common.HexToHash("0xb0d4176d160d67b99a9f963281e52bce0583a566b74b4497fe3ed24ae04004ff"), } - // TestnetChainConfig contains the chain parameters to run a node on the Ropsten test network. + // TestnetChainConfig contains the chain parameters to run a node on the Taiwan test network. TestnetChainConfig = &ChainConfig{ ChainID: big.NewInt(238), HomesteadBlock: big.NewInt(0), @@ -101,6 +101,35 @@ var ( }, } + // TaipeiChainConfig contains the chain parameters to run a node on the Taipei test network. + TaipeiChainConfig = &ChainConfig{ + ChainID: big.NewInt(239), + HomesteadBlock: big.NewInt(0), + DAOForkBlock: nil, + DAOForkSupport: true, + EIP150Block: big.NewInt(0), + EIP155Block: big.NewInt(0), + EIP158Block: big.NewInt(0), + ByzantiumBlock: big.NewInt(0), + ConstantinopleBlock: nil, + Dexcon: &DexconConfig{ + GenesisCRSText: "In DEXON, we trust.", + Owner: common.HexToAddress("BF8C48A620bacc46907f9B89732D25E47A2D7Cf7"), + MinStake: new(big.Int).Mul(big.NewInt(1e18), big.NewInt(1e5)), + BlockReward: big.NewInt(1e18), + BlockGasLimit: 40000000, + NumChains: 6, + LambdaBA: 250, + LambdaDKG: 2500, + K: 0, + PhiRatio: 0.667, + NotarySetSize: 4, + DKGSetSize: 4, + RoundInterval: 600000, + MinBlockInterval: 900, + }, + } + // TestnetTrustedCheckpoint contains the light client trusted checkpoint for the Ropsten test network. TestnetTrustedCheckpoint = &TrustedCheckpoint{ Name: "testnet", |