Skip to content

Commit

Permalink
Update lib/grandpa/message_handler.go
Browse files Browse the repository at this point in the history
Co-authored-by: Quentin McGaw <[email protected]>
  • Loading branch information
kishansagathiya and qdm12 authored Apr 27, 2022
1 parent e2538be commit cd39891
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/grandpa/message_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,8 @@ func getEquivocatoryVoters(votes []AuthData) (map[ed25519.PublicKeyBytes]struct{
for _, v := range votes {
voters[v.AuthorityID]++
if voters[v.AuthorityID] > 2 {
return nil, errInvalidMultiplicity
return nil, fmt.Errorf("%w: authority id %x has %d votes",
errInvalidMultiplicity, v.AuthorityID, voters[v.AuthorityID])
}

if voters[v.AuthorityID] == 2 {
Expand Down

0 comments on commit cd39891

Please sign in to comment.