aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJimmy Hu <jimmy.hu@dexon.org>2019-04-02 21:09:57 +0800
committerWei-Ning Huang <w@dexon.org>2019-04-09 21:32:59 +0800
commit5d3ac45f9300821560509be0e3be38be55ca992a (patch)
treecb552561c4ddbb8f4111e5bd7652aabd4a809867
parentecda3fb0a1b60e8415260b4ee02fcc2e1c0cc05b (diff)
downloaddexon-5d3ac45f9300821560509be0e3be38be55ca992a.tar.gz
dexon-5d3ac45f9300821560509be0e3be38be55ca992a.tar.zst
dexon-5d3ac45f9300821560509be0e3be38be55ca992a.zip
core: vm: fix fineFailStopDKG (#328)
-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 0431f3823..759727aa3 100644
--- a/core/vm/oracle_contracts.go
+++ b/core/vm/oracle_contracts.go
@@ -1366,7 +1366,7 @@ func (g *GovernanceContract) fineFailStopDKG(threshold int) {
}
}
for id, complaints := range complaintsByID {
- if len(complaints) > threshold {
+ if len(complaints) >= threshold {
offset := g.state.NodesOffsetByNodeKeyAddress(IdToAddress(id))
// Node might have been unstaked.
if offset.Cmp(big.NewInt(0)) < 0 {