diff options
author | Wei-Ning Huang <w@dexon.org> | 2019-01-13 16:21:17 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-04-09 21:32:56 +0800 |
commit | 7c664ca090d90815db23644c209d4f5cdf0ff594 (patch) | |
tree | 79f192501314c5ae37f8cb6c45ac3ef759d01945 /core/governance.go | |
parent | 7bf5e2205a49a500672ff7415921aa6659c46611 (diff) | |
download | go-tangerine-7c664ca090d90815db23644c209d4f5cdf0ff594.tar go-tangerine-7c664ca090d90815db23644c209d4f5cdf0ff594.tar.gz go-tangerine-7c664ca090d90815db23644c209d4f5cdf0ff594.tar.bz2 go-tangerine-7c664ca090d90815db23644c209d4f5cdf0ff594.tar.lz go-tangerine-7c664ca090d90815db23644c209d4f5cdf0ff594.tar.xz go-tangerine-7c664ca090d90815db23644c209d4f5cdf0ff594.tar.zst go-tangerine-7c664ca090d90815db23644c209d4f5cdf0ff594.zip |
consensus: implement DEXON cryptoeconomics v4.0 (#145)
Diffstat (limited to 'core/governance.go')
-rw-r--r-- | core/governance.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/governance.go b/core/governance.go index 45594fb64..538cd2b96 100644 --- a/core/governance.go +++ b/core/governance.go @@ -74,7 +74,7 @@ func (g *Governance) getHelperAtRound(round uint64) *vm.GovernanceStateHelper { return &vm.GovernanceStateHelper{StateDB: s} } -func (g *Governance) GetConfigHelper(round uint64) *vm.GovernanceStateHelper { +func (g *Governance) GetGovStateHelperAtRound(round uint64) *vm.GovernanceStateHelper { if round < dexCore.ConfigRoundShift { round = 0 } else { @@ -88,7 +88,7 @@ func (g *Governance) GetRoundHeight(round uint64) uint64 { } func (g *Governance) Configuration(round uint64) *coreTypes.Config { - configHelper := g.GetConfigHelper(round) + configHelper := g.GetGovStateHelperAtRound(round) c := configHelper.Configuration() return &coreTypes.Config{ NumChains: c.NumChains, |