diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-09-18 17:57:36 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-18 17:57:36 +0800 |
commit | 8c33027b943e08de21b7bddb82fecc2b2a5664a2 (patch) | |
tree | eaa282b1238eb609d710e9c45bb0689e7a399039 /core/ticker.go | |
parent | 476c759f5e2ea3949cf3aaf4e60ccc7e0439ee73 (diff) | |
download | dexon-consensus-8c33027b943e08de21b7bddb82fecc2b2a5664a2.tar dexon-consensus-8c33027b943e08de21b7bddb82fecc2b2a5664a2.tar.gz dexon-consensus-8c33027b943e08de21b7bddb82fecc2b2a5664a2.tar.bz2 dexon-consensus-8c33027b943e08de21b7bddb82fecc2b2a5664a2.tar.lz dexon-consensus-8c33027b943e08de21b7bddb82fecc2b2a5664a2.tar.xz dexon-consensus-8c33027b943e08de21b7bddb82fecc2b2a5664a2.tar.zst dexon-consensus-8c33027b943e08de21b7bddb82fecc2b2a5664a2.zip |
core: refine governance interface to reduce Get* methods (#114)
Since we have a bunch of static configurations in the governance
contract, instead of using a Get* method for each of them, we instead
implement a GetConfiguration() method to return a structure of the configurations.
Diffstat (limited to 'core/ticker.go')
-rw-r--r-- | core/ticker.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/ticker.go b/core/ticker.go index dffd676..bb5afb4 100644 --- a/core/ticker.go +++ b/core/ticker.go @@ -52,7 +52,7 @@ func newTicker(gov Governance) (t Ticker) { t = gen.NewTicker() } if t == nil { - t = newDefaultTicker(gov.GetLambda()) + t = newDefaultTicker(gov.GetConfiguration(0).Lambda) } return } |