From 73238220f282ebd2015543464c6db1fb15d970c5 Mon Sep 17 00:00:00 2001 From: 1xstj <106580853+1xstj@users.noreply.github.com> Date: Mon, 19 Jun 2023 14:21:19 +0530 Subject: [PATCH] handle misbehaviour report threshold (#645) Co-authored-by: drewstone --- pallets/dkg-metadata/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pallets/dkg-metadata/src/lib.rs b/pallets/dkg-metadata/src/lib.rs index ff28b0913..77c27cbe3 100644 --- a/pallets/dkg-metadata/src/lib.rs +++ b/pallets/dkg-metadata/src/lib.rs @@ -1083,7 +1083,7 @@ pub mod pallet { MisbehaviourType::Sign => Self::signature_threshold(), }; - if valid_reporters.len() >= signature_threshold.into() { + if valid_reporters.len() > signature_threshold.into() { // Deduct one point for misbehaviour report let reputation = AuthorityReputations::::get(&offender); // Compute reputation impact and apply to the offender