Skip to content

Commit

Permalink
Ignore mismatching digests after threshold reached (#285)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hyodar authored Aug 13, 2024
1 parent 0154475 commit 6150b60
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions aggregator/blsagg/message_blsagg.go
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,12 @@ func (mbas *MessageBlsAggregatorService) handleSignedMessageThresholdReached(
case signedMessage := <-signedMessageC:
mbas.logger.Debug("Message goroutine received new signed message", "key", messageKey)

if signedMessage.MessageDigest != messageDigest {
mbas.logger.Warn("Ignored signed message with non-majority digest", "expected", messageDigest, "got", signedMessage.MessageDigest)
signedMessage.SignatureVerificationErrorC <- nil
continue
}

err := mbas.handleSignedMessageDigest(signedMessage, validationInfo)
signedMessage.SignatureVerificationErrorC <- err
if err != nil {
Expand Down

0 comments on commit 6150b60

Please sign in to comment.