|
if len(req.TrustedCommit.Signatures) > len(req.TrustedCommit.Signatures) { |
|
return nil, fmt.Errorf("More signatures than validators") |
|
} |
|
if len(req.UntrustedCommit.Signatures) > len(req.UntrustedCommit.Signatures) { |
|
return nil, fmt.Errorf("More signatures than validators") |
|
} |
should change to
if len(req.TrustedCommit.Signatures) > len(req.TrustedCommit.Validators)
and
if len(req.UntrustedCommit.Signatures) > len(req.UntrustedCommit.Validators)