Skip to content

Commit

Permalink
Add blob index to file path (#13736)
Browse files Browse the repository at this point in the history
* Add index to file path

* Add block root

* Add index to file path
  • Loading branch information
terencechain authored Mar 13, 2024
1 parent 4d3a6d8 commit d49afb3
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_%#x_%d_%d.ssz", b.BlockRoot(), 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 d49afb3

Please sign in to comment.