diff options
author | Mission Liao <mission.liao@dexon.org> | 2019-02-25 19:08:17 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-03-12 12:19:09 +0800 |
commit | f3658a11e0a72da8da4c716cbcecc69d79f396ce (patch) | |
tree | bec0b457f6305f58473974bb855bf69519a873e3 /params | |
parent | d779f5aead9e91b97c8d05136ddb7a6bd84f4276 (diff) | |
download | dexon-f3658a11e0a72da8da4c716cbcecc69d79f396ce.tar dexon-f3658a11e0a72da8da4c716cbcecc69d79f396ce.tar.gz dexon-f3658a11e0a72da8da4c716cbcecc69d79f396ce.tar.bz2 dexon-f3658a11e0a72da8da4c716cbcecc69d79f396ce.tar.lz dexon-f3658a11e0a72da8da4c716cbcecc69d79f396ce.tar.xz dexon-f3658a11e0a72da8da4c716cbcecc69d79f396ce.tar.zst dexon-f3658a11e0a72da8da4c716cbcecc69d79f396ce.zip |
params: add Yilan network (#207)
* Add Yilan network
* Fixup: remove dummy log
Diffstat (limited to 'params')
-rw-r--r-- | params/bootnodes.go | 8 | ||||
-rw-r--r-- | params/config.go | 37 |
2 files changed, 44 insertions, 1 deletions
diff --git a/params/bootnodes.go b/params/bootnodes.go index 2530215bf..d655680fb 100644 --- a/params/bootnodes.go +++ b/params/bootnodes.go @@ -28,12 +28,18 @@ var TestnetBootnodes = []string{ "enode://0478aa13c91aa0db8e93b668313b7eb0532fbdb24f64772375373b14dbe326c238ad09ab4469f6442c9a9753f1275aeec2e531912c14a958ed1feb4ae7e227ef@35.234.27.122:30301", } -// TestnetBootnodes are the enode URLs of the P2P bootstrap nodes running on the +// TaipeiBootnodes are the enode URLs of the P2P bootstrap nodes running on the // Taipei test network. var TaipeiBootnodes = []string{ "enode://0478aa13c91aa0db8e93b668313b7eb0532fbdb24f64772375373b14dbe326c238ad09ab4469f6442c9a9753f1275aeec2e531912c14a958ed1feb4ae7e227ef@34.80.219.23:30301", } +// YilanBootnodes are the enode URLs of the P2P bootstrap nodes running on the +// Yilan test network. +var YilanBootnodes = []string{ + "enode://0478aa13c91aa0db8e93b668313b7eb0532fbdb24f64772375373b14dbe326c238ad09ab4469f6442c9a9753f1275aeec2e531912c14a958ed1feb4ae7e227ef@34.80.4.56:30301", +} + // DiscoveryV5Bootnodes are the enode URLs of the P2P bootstrap nodes for the // experimental RLPx v5 topic-discovery network. var DiscoveryV5Bootnodes = []string{} diff --git a/params/config.go b/params/config.go index 1bb7b0434..86364e6f4 100644 --- a/params/config.go +++ b/params/config.go @@ -28,6 +28,7 @@ import ( var ( MainnetGenesisHash = common.HexToHash("0xf80aae99a7c44bc54d7b0cc8a16645fa3ea65c01b180339f17b31a698b031271") TestnetGenesisHash = common.HexToHash("0x7f704c8d0a773d0fcca231d40bf39495553886bf8800b4a06920786a802103e1") + YilanGenesisHash = common.HexToHash("0x394f057bc19b7762eaccd7e250afa213e9b0e60d1204a234fd11ed03eabfb90e") ) var ( @@ -161,6 +162,42 @@ var ( BloomRoot: common.HexToHash("0x0584834e5222471a06c669d210e302ca602780eaaddd04634fd65471c2a91419"), } + // YilanChainConfig contains the chain parameters to run a node on the Yilan test network. + YilanChainConfig = &ChainConfig{ + ChainID: big.NewInt(240), + DMoment: 1550802900, + 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: big.NewInt(0), + Dexcon: &DexconConfig{ + GenesisCRSText: "In DEXON, we trust, at Yilan", + Owner: common.HexToAddress("BF8C48A620bacc46907f9B89732D25E47A2D7Cf7"), + MinStake: new(big.Int).Mul(big.NewInt(1e18), big.NewInt(1e6)), + LockupPeriod: 86400 * 3 * 1000, + MiningVelocity: 0.1875, + NextHalvingSupply: new(big.Int).Mul(big.NewInt(1e18), big.NewInt(2e7)), + LastHalvedAmount: new(big.Int).Mul(big.NewInt(1e18), big.NewInt(4e6)), + BlockGasLimit: 40000000, + LambdaBA: 250, + LambdaDKG: 10000, + NotarySetSize: 4, + DKGSetSize: 4, + RoundLength: 1200, + MinBlockInterval: 1000, + FineValues: []*big.Int{ + new(big.Int).Mul(big.NewInt(1e18), big.NewInt(1e4)), + new(big.Int).Mul(big.NewInt(1e18), big.NewInt(1e4)), + new(big.Int).Mul(big.NewInt(1e18), big.NewInt(1e5)), + }, + MinGasPrice: new(big.Int).Mul(big.NewInt(1e9), big.NewInt(1)), + }, + } + // AllEthashProtocolChanges contains every protocol change (EIPs) introduced // and accepted by the Ethereum core developers into the Ethash consensus. // |