File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,8 @@ type uniformVoteWeight struct {
23
23
24
24
lastPowerSignersCountCache map [Phase ]int64
25
25
lastParticipantsCount int64
26
+
27
+ useGTforQuorumChecking bool
26
28
}
27
29
28
30
// Policy ..
@@ -60,7 +62,11 @@ func (v *uniformVoteWeight) IsQuorumAchievedByMask(mask *bls_cosi.Mask) bool {
60
62
}
61
63
threshold := v .TwoThirdsSignersCount ()
62
64
currentTotalPower := utils .CountOneBits (mask .Bitmap )
63
- if currentTotalPower < threshold {
65
+ enoughVotingPower := currentTotalPower >= threshold
66
+ if v .useGTforQuorumChecking {
67
+ enoughVotingPower = currentTotalPower > threshold
68
+ }
69
+ if ! enoughVotingPower {
64
70
const msg = "[IsQuorumAchievedByMask] Not enough voting power: need %+v, have %+v"
65
71
utils .Logger ().Warn ().Msgf (msg , threshold , currentTotalPower )
66
72
return false
You can’t perform that action at this time.
0 commit comments