diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-09-27 14:27:18 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-27 14:27:18 +0800 |
commit | 506014f22faba150cd7197e7dd817e72a914dc84 (patch) | |
tree | 3f61287a4578c31c447cc8d9283fc3c728dd6cb7 /simulation/config | |
parent | 9c2f700be09c27e8a8d12fc5bc0ccd017d408a32 (diff) | |
download | dexon-consensus-506014f22faba150cd7197e7dd817e72a914dc84.tar dexon-consensus-506014f22faba150cd7197e7dd817e72a914dc84.tar.gz dexon-consensus-506014f22faba150cd7197e7dd817e72a914dc84.tar.bz2 dexon-consensus-506014f22faba150cd7197e7dd817e72a914dc84.tar.lz dexon-consensus-506014f22faba150cd7197e7dd817e72a914dc84.tar.xz dexon-consensus-506014f22faba150cd7197e7dd817e72a914dc84.tar.zst dexon-consensus-506014f22faba150cd7197e7dd817e72a914dc84.zip |
core: update governance interface and config (#145)
1) Remove RoundHeight from config.
2) NotarySet is not from governance contract, we get Node set intead.
Notary set is caculated from the NodeSet using CRS.
3) CRS is not in the governance interface.
Diffstat (limited to 'simulation/config')
-rw-r--r-- | simulation/config/config.go | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/simulation/config/config.go b/simulation/config/config.go index cc31a5b..8bc4ab7 100644 --- a/simulation/config/config.go +++ b/simulation/config/config.go @@ -36,13 +36,12 @@ 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"` - RoundHeight uint64 + PhiRatio float32 + K int + ChainNum uint32 + GenesisCRS string `toml:"genesis_crs"` + LambdaBA int `toml:"lambda_ba"` + LambdaDKG int `toml:"lambda_dkg"` } // Legacy config. @@ -94,13 +93,12 @@ 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, - RoundHeight: 60, + PhiRatio: float32(2) / 3, + K: 1, + ChainNum: 7, + GenesisCRS: "In DEXON we trust.", + LambdaBA: 250, + LambdaDKG: 1000, }, Legacy: Legacy{ ProposeIntervalMean: 500, |