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 13:50:06 +0800
commit922f281147ef68c86b9e09d990b2105a6fec7391 (patch)
treec694813c9a1eb8deb9d66465a1b793264204f1d2
parent6edc14927a6460f22fe40a3244535a25a906e3ed (diff)
downloaddexon-922f281147ef68c86b9e09d990b2105a6fec7391.tar
dexon-922f281147ef68c86b9e09d990b2105a6fec7391.tar.gz
dexon-922f281147ef68c86b9e09d990b2105a6fec7391.tar.bz2
dexon-922f281147ef68c86b9e09d990b2105a6fec7391.tar.lz
dexon-922f281147ef68c86b9e09d990b2105a6fec7391.tar.xz
dexon-922f281147ef68c86b9e09d990b2105a6fec7391.tar.zst
dexon-922f281147ef68c86b9e09d990b2105a6fec7391.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 {