Skip to content

Commit

Permalink
Add index to file path
Browse files Browse the repository at this point in the history
  • Loading branch information
terencechain committed Mar 13, 2024
1 parent 9c5d16e commit 17137d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beacon-chain/sync/validate_blob.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ func saveInvalidBlobToTemp(b blocks.ROBlob) {
if !features.Get().SaveInvalidBlob {
return
}
filename := fmt.Sprintf("blob_sidecar_%d.ssz", b.Slot())
filename := fmt.Sprintf("blob_sidecar_%d_%d.ssz", b.Slot(), b.Index)
fp := path.Join(os.TempDir(), filename)
log.Warnf("Writing invalid blob sidecar to disk at %s", fp)
enc, err := b.MarshalSSZ()
Expand Down

0 comments on commit 17137d1

Please sign in to comment.