diff options
author | Jimmy Hu <jimmy.hu@dexon.org> | 2019-02-22 13:14:55 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-03-12 12:19:09 +0800 |
commit | c9104455be030e69fd499d6df646c3e0f021a9c0 (patch) | |
tree | 729516a01483e1a8aea3356e5a9000e6c6e53e25 /core/governance.go | |
parent | 57998d5b9eceec5967637028c51aee374a812664 (diff) | |
download | dexon-c9104455be030e69fd499d6df646c3e0f021a9c0.tar dexon-c9104455be030e69fd499d6df646c3e0f021a9c0.tar.gz dexon-c9104455be030e69fd499d6df646c3e0f021a9c0.tar.bz2 dexon-c9104455be030e69fd499d6df646c3e0f021a9c0.tar.lz dexon-c9104455be030e69fd499d6df646c3e0f021a9c0.tar.xz dexon-c9104455be030e69fd499d6df646c3e0f021a9c0.tar.zst dexon-c9104455be030e69fd499d6df646c3e0f021a9c0.zip |
core: Remove K, Phi and NumChains from Governance (#198)
* change default sync_core.sh
* vendor: sync to latest core
* core: Remove K, Phi and NumChain
Diffstat (limited to 'core/governance.go')
-rw-r--r-- | core/governance.go | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/core/governance.go b/core/governance.go index 538cd2b96..12124760e 100644 --- a/core/governance.go +++ b/core/governance.go @@ -91,14 +91,12 @@ func (g *Governance) Configuration(round uint64) *coreTypes.Config { configHelper := g.GetGovStateHelperAtRound(round) c := configHelper.Configuration() return &coreTypes.Config{ - NumChains: c.NumChains, - LambdaBA: time.Duration(c.LambdaBA) * time.Millisecond, - LambdaDKG: time.Duration(c.LambdaDKG) * time.Millisecond, - K: int(c.K), - PhiRatio: c.PhiRatio, - NotarySetSize: c.NotarySetSize, - DKGSetSize: c.DKGSetSize, - RoundInterval: time.Duration(c.RoundInterval) * time.Millisecond, + LambdaBA: time.Duration(c.LambdaBA) * time.Millisecond, + LambdaDKG: time.Duration(c.LambdaDKG) * time.Millisecond, + NotarySetSize: c.NotarySetSize, + DKGSetSize: c.DKGSetSize, + // TODO(jimmyhu): remove MinBlockInterval after coreTypes.Config update. + RoundInterval: time.Duration(c.RoundLength) * time.Duration(c.MinBlockInterval) * time.Millisecond, MinBlockInterval: time.Duration(c.MinBlockInterval) * time.Millisecond, } } |