From db714bb8e4230b99ed0465f3310e88ce7ee3688c Mon Sep 17 00:00:00 2001 From: GheisMohammadi Date: Thu, 28 Nov 2024 19:45:55 +0800 Subject: [PATCH] Update Quorum Check to use GTE for consistency --- consensus/quorum/one-node-staked-vote.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consensus/quorum/one-node-staked-vote.go b/consensus/quorum/one-node-staked-vote.go index 45f4289eab..179ccde2fb 100644 --- a/consensus/quorum/one-node-staked-vote.go +++ b/consensus/quorum/one-node-staked-vote.go @@ -160,7 +160,7 @@ func (v *stakedVoteWeight) IsQuorumAchievedByMask(mask *bls_cosi.Mask) bool { const msg = "[IsQuorumAchievedByMask] Voting power: need %+v, have %+v" utils.Logger().Debug(). Msgf(msg, threshold, currentTotalPower) - return (*currentTotalPower).GT(threshold) + return (*currentTotalPower).GTE(threshold) } func (v *stakedVoteWeight) ComputeTotalPowerByMask(mask *bls_cosi.Mask) numeric.Dec {