Skip to content

Commit 2621ae8

Browse files
committed
always require signature
1 parent e5f3163 commit 2621ae8

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

cmd/relay/bgs/validator.go

+1-5
Original file line numberDiff line numberDiff line change
@@ -436,11 +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-
if !val.Sync11ErrorsAreWarnings {
440-
return nil, err
441-
} else {
442-
logger.Warn("invalid sig", "err", err)
443-
}
439+
logger.Warn("invalid sig", "err", err)
444440
}
445441

446442
return &commit.Data, nil

0 commit comments

Comments
 (0)