aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJimmy Hu <jimmy.hu@dexon.org>2019-03-31 15:20:26 +0800
committerWei-Ning Huang <w@byzantine-lab.io>2019-06-15 22:09:55 +0800
commit3c0372165e723de9f1bd3ea8dacd579810463f6d (patch)
tree21fc92a7661b3c3afaccdeeea21b9a4eaf3a4093
parent7db36faceacb33530dcce7c6bfb3893174bed69c (diff)
downloadgo-tangerine-3c0372165e723de9f1bd3ea8dacd579810463f6d.tar
go-tangerine-3c0372165e723de9f1bd3ea8dacd579810463f6d.tar.gz
go-tangerine-3c0372165e723de9f1bd3ea8dacd579810463f6d.tar.bz2
go-tangerine-3c0372165e723de9f1bd3ea8dacd579810463f6d.tar.lz
go-tangerine-3c0372165e723de9f1bd3ea8dacd579810463f6d.tar.xz
go-tangerine-3c0372165e723de9f1bd3ea8dacd579810463f6d.tar.zst
go-tangerine-3c0372165e723de9f1bd3ea8dacd579810463f6d.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 fbed2d48d..ba1f6aa52 100644
--- a/core/vm/oracle_contracts.go
+++ b/core/vm/oracle_contracts.go
@@ -1327,7 +1327,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()