aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJimmy Hu <jimmy.hu@dexon.org>2019-03-31 15:20:26 +0800
committerWei-Ning Huang <w@dexon.org>2019-04-09 21:32:59 +0800
commitf30474a07847c4406601bf045250ac18630dc484 (patch)
treeb635480d5a6c23fc19218bbe8d96c147af5c26b6
parent1f4f34cfbf3f74cc827531c51fca2ab27f20d516 (diff)
downloaddexon-f30474a07847c4406601bf045250ac18630dc484.tar.gz
dexon-f30474a07847c4406601bf045250ac18630dc484.tar.zst
dexon-f30474a07847c4406601bf045250ac18630dc484.zip
core: vm: clear DKG the right way (#319)
-rw-r--r--core/vm/oracle_contracts.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/vm/oracle_contracts.go b/core/vm/oracle_contracts.go
index 5ea4d4790..9e148e4e8 100644
--- a/core/vm/oracle_contracts.go
+++ b/core/vm/oracle_contracts.go
@@ -1329,7 +1329,7 @@ func (g *GovernanceContract) inNotarySet(round *big.Int, nodeID coreTypes.NodeID
}
func (g *GovernanceContract) clearDKG() {
- dkgSet := g.getNotarySet(g.evm.Round)
+ dkgSet := g.getNotarySet(g.state.DKGRound())
g.state.ClearDKGMasterPublicKeyProposed()
g.state.ClearDKGMasterPublicKeys()
g.state.ClearDKGComplaintProposed()