aboutsummaryrefslogtreecommitdiffstats
path: root/params
diff options
context:
space:
mode:
authorMission Liao <mission.liao@dexon.org>2019-02-25 19:08:17 +0800
committerWei-Ning Huang <w@byzantine-lab.io>2019-06-12 17:27:22 +0800
commit20718c049c3988f6aac25bee2d33f959ad517deb (patch)
tree19fc4ec3a0f5fbcfa753353c87a5da545a8c4cd0 /params
parent8e92e73dc650ac03c228fbb26a3afe88a5bc237c (diff)
downloadgo-tangerine-20718c049c3988f6aac25bee2d33f959ad517deb.tar
go-tangerine-20718c049c3988f6aac25bee2d33f959ad517deb.tar.gz
go-tangerine-20718c049c3988f6aac25bee2d33f959ad517deb.tar.bz2
go-tangerine-20718c049c3988f6aac25bee2d33f959ad517deb.tar.lz
go-tangerine-20718c049c3988f6aac25bee2d33f959ad517deb.tar.xz
go-tangerine-20718c049c3988f6aac25bee2d33f959ad517deb.tar.zst
go-tangerine-20718c049c3988f6aac25bee2d33f959ad517deb.zip
params: add Yilan network (#207)
* Add Yilan network * Fixup: remove dummy log
Diffstat (limited to 'params')
-rw-r--r--params/bootnodes.go8
-rw-r--r--params/config.go37
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 c9a648bd8..8e20a15a4 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")
)
// TrustedCheckpoints associates each known checkpoint with the genesis hash of
@@ -168,6 +169,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.
//