diff options
author | Jimmy Hu <jimmy.hu@dexon.org> | 2019-04-02 21:09:57 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@byzantine-lab.io> | 2019-06-15 22:09:55 +0800 |
commit | 7538cbfe0646688503abbe32c3b45700ed27ae4f (patch) | |
tree | bc451189919dc29cb53bade8a29276db20c67176 | |
parent | 35917e287ceb506f98c80c9e25ead762738d58b5 (diff) | |
download | go-tangerine-7538cbfe0646688503abbe32c3b45700ed27ae4f.tar.gz go-tangerine-7538cbfe0646688503abbe32c3b45700ed27ae4f.tar.zst go-tangerine-7538cbfe0646688503abbe32c3b45700ed27ae4f.zip |
core: vm: fix fineFailStopDKG (#328)
-rw-r--r-- | core/vm/oracle_contracts.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/vm/oracle_contracts.go b/core/vm/oracle_contracts.go index 2293cdd42..deeedfc15 100644 --- a/core/vm/oracle_contracts.go +++ b/core/vm/oracle_contracts.go @@ -1364,7 +1364,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 { |