Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
Merge pull request #2090 from Bytom/fix_is_majority
Browse files Browse the repository at this point in the history
fix is majority
  • Loading branch information
Paladz authored Aug 20, 2021
2 parents d86a52c + 70fc07b commit 3854b12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion protocol/bc/types/sup_link.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ type SupLink struct {
func (s *SupLink) IsMajority(numOfValidators int) bool {
numOfSignatures := 0
for _, signature := range s.Signatures {
if len(signature) >= 0 {
if len(signature) > 0 {
numOfSignatures++
}
}
Expand Down

0 comments on commit 3854b12

Please sign in to comment.