Skip to content

Commit

Permalink
fix list traversal
Browse files Browse the repository at this point in the history
  • Loading branch information
agnxsh committed Dec 12, 2024
1 parent d357f19 commit 1504745
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions beacon_chain/sync/request_manager.nim
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,7 @@ proc checkResponse(idList: seq[BlobIdentifier],

# Check if the blob response is a subset
if binarySearch(idList, blobs[i], cmpSidecarIdentifier) == -1:
i = if i != blobs.len - 1: i + 2 else: i + 1
continue
return false

# Verify block_root and index match
if id.block_root != block_root or id.index != blobs[i].index:
Expand Down

0 comments on commit 1504745

Please sign in to comment.