Skip to content

Commit

Permalink
Update Quorum Check to use GTE for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
GheisMohammadi committed Nov 28, 2024
1 parent 6e7b891 commit db714bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion consensus/quorum/one-node-staked-vote.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit db714bb

Please sign in to comment.