Skip to content

Commit 991d2f9

Browse files
committed
signatures are errors
1 parent 2621ae8 commit 991d2f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/relay/bgs/validator.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ func (val *Validator) HandleSync(ctx context.Context, host *models.PDS, msg *atp
436436
err = val.VerifyCommitSignature(ctx, commit, hostname, &hasWarning)
437437
if err != nil {
438438
// signature errors are metrics counted inside VerifyCommitSignature()
439-
logger.Warn("invalid sig", "err", err)
439+
return nil, err
440440
}
441441

442442
return &commit.Data, nil

0 commit comments

Comments
 (0)