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 /dex/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 'dex/governance.go')
-rw-r--r-- | dex/governance.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dex/governance.go b/dex/governance.go index ec029f2f1..0d5a7c926 100644 --- a/dex/governance.go +++ b/dex/governance.go @@ -68,7 +68,7 @@ func NewDexconGovernance(backend *DexAPIBackend, chainConfig *params.ChainConfig // DexconConfiguration return raw config in state. func (d *DexconGovernance) DexconConfiguration(round uint64) *params.DexconConfig { - return d.GetConfigHelper(round).Configuration() + return d.GetGovStateHelperAtRound(round).Configuration() } func (d *DexconGovernance) sendGovTx(ctx context.Context, data []byte) error { @@ -136,7 +136,7 @@ func (d *DexconGovernance) ProposeCRS(round uint64, signedCRS []byte) { // NodeSet returns the current node set. func (d *DexconGovernance) NodeSet(round uint64) []coreCrypto.PublicKey { - s := d.GetConfigHelper(round) + s := d.GetGovStateHelperAtRound(round) var pks []coreCrypto.PublicKey for _, n := range s.QualifiedNodes() { |