Skip to content

Commit

Permalink
Merge pull request #2432 from OffchainLabs/fix-cl-dup-blob-response
Browse files Browse the repository at this point in the history
Work around duplicate response from CL
  • Loading branch information
PlasmaPower authored Jun 25, 2024
2 parents 057bf83 + 43d6517 commit d906798
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions util/headerreader/blob_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,10 +229,11 @@ func (b *BlobClient) blobSidecars(ctx context.Context, slot uint64, versionedHas
var found bool
for outputIdx = range versionedHashes {
if versionedHashes[outputIdx] == versionedHash {
found = true
if outputsFound[outputIdx] {
return nil, fmt.Errorf("found blob with versioned hash %v twice", versionedHash)
// Duplicate, skip this one
break
}
found = true
outputsFound[outputIdx] = true
break
}
Expand Down

0 comments on commit d906798

Please sign in to comment.