aboutsummaryrefslogtreecommitdiffstats
path: root/core/governance.go
diff options
context:
space:
mode:
authorJimmy Hu <jimmy.hu@dexon.org>2019-02-22 13:14:55 +0800
committerWei-Ning Huang <w@dexon.org>2019-03-12 12:19:09 +0800
commitc9104455be030e69fd499d6df646c3e0f021a9c0 (patch)
tree729516a01483e1a8aea3356e5a9000e6c6e53e25 /core/governance.go
parent57998d5b9eceec5967637028c51aee374a812664 (diff)
downloaddexon-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.go14
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,
}
}