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 4d3a6d8 commit e5ad2ff
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 @@ -177,7 +177,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 e5ad2ff

Please sign in to comment.