aboutsummaryrefslogtreecommitdiffstats
path: root/simulation/config
diff options
context:
space:
mode:
authorJimmy Hu <jimmy.hu@dexon.org>2018-09-28 13:06:16 +0800
committerGitHub <noreply@github.com>2018-09-28 13:06:16 +0800
commit9ad4ae71b5a49ddc77687cc368c31416a0ee0688 (patch)
treeca29f72aa63b6610f0a8ec1aef2e842677e9ac6f /simulation/config
parent5fc0efa940c7663a33d0fc501807a2627d2cb573 (diff)
downloaddexon-consensus-9ad4ae71b5a49ddc77687cc368c31416a0ee0688.tar
dexon-consensus-9ad4ae71b5a49ddc77687cc368c31416a0ee0688.tar.gz
dexon-consensus-9ad4ae71b5a49ddc77687cc368c31416a0ee0688.tar.bz2
dexon-consensus-9ad4ae71b5a49ddc77687cc368c31416a0ee0688.tar.lz
dexon-consensus-9ad4ae71b5a49ddc77687cc368c31416a0ee0688.tar.xz
dexon-consensus-9ad4ae71b5a49ddc77687cc368c31416a0ee0688.tar.zst
dexon-consensus-9ad4ae71b5a49ddc77687cc368c31416a0ee0688.zip
core: Add sizes of various nodeSets (#148)
Diffstat (limited to 'simulation/config')
-rw-r--r--simulation/config/config.go26
1 files changed, 14 insertions, 12 deletions
diff --git a/simulation/config/config.go b/simulation/config/config.go
index 8bc4ab7..ac4303d 100644
--- a/simulation/config/config.go
+++ b/simulation/config/config.go
@@ -36,12 +36,13 @@ const (
// Consensus settings.
type Consensus struct {
- PhiRatio float32
- K int
- ChainNum uint32
- GenesisCRS string `toml:"genesis_crs"`
- LambdaBA int `toml:"lambda_ba"`
- LambdaDKG int `toml:"lambda_dkg"`
+ PhiRatio float32
+ K int
+ ChainNum uint32
+ GenesisCRS string `toml:"genesis_crs"`
+ LambdaBA int `toml:"lambda_ba"`
+ LambdaDKG int `toml:"lambda_dkg"`
+ RoundInterval int
}
// Legacy config.
@@ -93,12 +94,13 @@ func GenerateDefault(path string) error {
Title: "DEXON Consensus Simulation Config",
Node: Node{
Consensus: Consensus{
- PhiRatio: float32(2) / 3,
- K: 1,
- ChainNum: 7,
- GenesisCRS: "In DEXON we trust.",
- LambdaBA: 250,
- LambdaDKG: 1000,
+ PhiRatio: float32(2) / 3,
+ K: 1,
+ ChainNum: 7,
+ GenesisCRS: "In DEXON we trust.",
+ LambdaBA: 250,
+ LambdaDKG: 1000,
+ RoundInterval: 365 * 86400 * 1000,
},
Legacy: Legacy{
ProposeIntervalMean: 500,