From 37bb1f320bbdd7ef1a33d400a3ea6b67e301a135 Mon Sep 17 00:00:00 2001 From: Jimmy Hu Date: Tue, 2 Apr 2019 19:03:14 +0800 Subject: core: fix disqualified (#544) * core: fix disqualified * fix test --- core/types/dkg/dkg.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/types/dkg/dkg.go') 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{}{} } } -- cgit v1.2.3