diff options
author | Mission Liao <mission.liao@dexon.org> | 2019-02-25 19:08:17 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-04-09 21:32:57 +0800 |
commit | 27d1254cd5459b69217b4b7877493a008e9dbe3e (patch) | |
tree | 125e8c41dd2c5a3fbde1d968d111c2f71dcec10e /params | |
parent | 5832a21db625bfa98a3b7909bb6996dd1fd2e4d3 (diff) | |
download | dexon-27d1254cd5459b69217b4b7877493a008e9dbe3e.tar dexon-27d1254cd5459b69217b4b7877493a008e9dbe3e.tar.gz dexon-27d1254cd5459b69217b4b7877493a008e9dbe3e.tar.bz2 dexon-27d1254cd5459b69217b4b7877493a008e9dbe3e.tar.lz dexon-27d1254cd5459b69217b4b7877493a008e9dbe3e.tar.xz dexon-27d1254cd5459b69217b4b7877493a008e9dbe3e.tar.zst dexon-27d1254cd5459b69217b4b7877493a008e9dbe3e.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 cad58c33f..6971e1a72 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("0x5ac25c84bd18a9cbe878d4609a80220f57f85037a112644532412ba0d498a31b"), } + // 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. // |