this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

if CAR is so bad we can't go on, fail out

+2 -2
+2 -2
cmd/relay/bgs/validator.go
··· 192 192 commit, repoFragment, err := atrepo.LoadFromCAR(ctx, bytes.NewReader([]byte(msg.Blocks))) 193 193 if err != nil { 194 194 commitVerifyErrors.WithLabelValues(hostname, "car").Inc() 195 - if !val.Sync11ErrorsAreWarnings { 195 + if !val.Sync11ErrorsAreWarnings || commit == nil || repoFragment == nil { 196 196 return nil, err 197 197 } else { 198 198 logger.Warn("invalid car", "err", err) ··· 409 409 commit, err := atrepo.LoadCARCommit(ctx, bytes.NewReader([]byte(msg.Blocks))) 410 410 if err != nil { 411 411 commitVerifyErrors.WithLabelValues(hostname, "car").Inc() 412 - if !val.Sync11ErrorsAreWarnings { 412 + if !val.Sync11ErrorsAreWarnings || commit == nil { 413 413 return nil, err 414 414 } else { 415 415 logger.Warn("invalid car", "err", err)