aboutsummaryrefslogtreecommitdiffstats
path: root/core/types/dkg/dkg.go
diff options
context:
space:
mode:
authorJimmy Hu <jimmy.hu@dexon.org>2019-04-02 19:03:14 +0800
committerGitHub <noreply@github.com>2019-04-02 19:03:14 +0800
commit37bb1f320bbdd7ef1a33d400a3ea6b67e301a135 (patch)
tree547e5eb740b9356f3000f49491e2664d0ba02a3b /core/types/dkg/dkg.go
parent49cda7c3671c9410e368db097a118d25127fef43 (diff)
downloadtangerine-consensus-37bb1f320bbdd7ef1a33d400a3ea6b67e301a135.tar
tangerine-consensus-37bb1f320bbdd7ef1a33d400a3ea6b67e301a135.tar.gz
tangerine-consensus-37bb1f320bbdd7ef1a33d400a3ea6b67e301a135.tar.bz2
tangerine-consensus-37bb1f320bbdd7ef1a33d400a3ea6b67e301a135.tar.lz
tangerine-consensus-37bb1f320bbdd7ef1a33d400a3ea6b67e301a135.tar.xz
tangerine-consensus-37bb1f320bbdd7ef1a33d400a3ea6b67e301a135.tar.zst
tangerine-consensus-37bb1f320bbdd7ef1a33d400a3ea6b67e301a135.zip
core: fix disqualified (#544)
* core: fix disqualified * fix test
Diffstat (limited to 'core/types/dkg/dkg.go')
-rw-r--r--core/types/dkg/dkg.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/types/dkg/dkg.go b/core/types/dkg/dkg.go
index 301cef7..e9b22bc 100644
--- a/core/types/dkg/dkg.go
+++ b/core/types/dkg/dkg.go
@@ -345,7 +345,7 @@ func CalcQualifyNodes(
}
}
for nID, complaints := range complaintsByID {
- if len(complaints) > threshold {
+ if len(complaints) >= threshold {
disqualifyIDs[nID] = struct{}{}
}
}