We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 366fce0 commit de4b8bcCopy full SHA for de4b8bc
consensus/quorum/one-node-one-vote.go
@@ -62,9 +62,9 @@ func (v *uniformVoteWeight) IsQuorumAchievedByMask(mask *bls_cosi.Mask) bool {
62
}
63
threshold := v.TwoThirdsSignersCount()
64
currentTotalPower := utils.CountOneBits(mask.Bitmap)
65
- enoughVotingPower := currentTotalPower >= threshold
+ enoughVotingPower := threshold >= currentTotalPower
66
if v.useGTforQuorumChecking {
67
- enoughVotingPower = currentTotalPower > threshold
+ enoughVotingPower = threshold > currentTotalPower
68
69
if !enoughVotingPower {
70
const msg = "[IsQuorumAchievedByMask] Not enough voting power: need %+v, have %+v"
0 commit comments