aboutsummaryrefslogtreecommitdiffstats
path: root/params/config.go
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2018-11-26 13:54:28 +0800
committerWei-Ning Huang <w@dexon.org>2019-04-09 21:32:54 +0800
commit32e1c5ad4d6e57e4d555577fa586324f10b7319e (patch)
treecce99e6243b10c46226355fd58787f47a0b1c64a /params/config.go
parent622ae7fe3ef067d4f395937a9bb0f783a7c1e6c7 (diff)
downloaddexon-32e1c5ad4d6e57e4d555577fa586324f10b7319e.tar
dexon-32e1c5ad4d6e57e4d555577fa586324f10b7319e.tar.gz
dexon-32e1c5ad4d6e57e4d555577fa586324f10b7319e.tar.bz2
dexon-32e1c5ad4d6e57e4d555577fa586324f10b7319e.tar.lz
dexon-32e1c5ad4d6e57e4d555577fa586324f10b7319e.tar.xz
dexon-32e1c5ad4d6e57e4d555577fa586324f10b7319e.tar.zst
dexon-32e1c5ad4d6e57e4d555577fa586324f10b7319e.zip
core: add Taipei testnet (#47)
Add a new testnet named Taipei.
Diffstat (limited to 'params/config.go')
-rw-r--r--params/config.go31
1 files changed, 30 insertions, 1 deletions
diff --git a/params/config.go b/params/config.go
index 059d9b2c0..d194564b2 100644
--- a/params/config.go
+++ b/params/config.go
@@ -71,7 +71,7 @@ var (
BloomRoot: common.HexToHash("0xec1b454d4c6322c78ccedf76ac922a8698c3cac4d98748a84af4995b7bd3d744"),
}
- // 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",