From 56680e215e7e27ab8896d782876ee64881cae6ff Mon Sep 17 00:00:00 2001 From: Wei-Ning Huang Date: Sun, 13 Jan 2019 16:21:17 +0800 Subject: consensus: implement DEXON cryptoeconomics v4.0 (#145) --- dex/governance.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dex/governance.go') 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() { -- cgit v1.2.3