From 150474513dd6165fa602ece0e6faffe8664ca6ac Mon Sep 17 00:00:00 2001 From: agnxsh Date: Thu, 12 Dec 2024 18:59:20 +0530 Subject: [PATCH] fix list traversal --- beacon_chain/sync/request_manager.nim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/beacon_chain/sync/request_manager.nim b/beacon_chain/sync/request_manager.nim index 6c5ea45ad5..bf5b64ab95 100644 --- a/beacon_chain/sync/request_manager.nim +++ b/beacon_chain/sync/request_manager.nim @@ -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: