Skip to content

Commit cb117f8

Browse files
Fix fetch blobs in all-null case (#6940)
Fix another issue with fetch-blobs, similar to: - #6911 Check if the list of blobs returned is all `None`, and if so, do not proceed any further. This prevents an ugly error like: > Feb 03 17:32:12.384 ERRO Error fetching or processing blobs from EL, block_root: 0x7326fe2dc1cb9036c9de7a07a662c86a339085597849016eadf061b70b7815ba, error: BlobProcessingError(AvailabilityCheck(Unexpected)), module : network::network_beacon_processor:1011
1 parent d6596db commit cb117f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

beacon_node/beacon_chain/src/fetch_blobs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ pub async fn fetch_and_process_engine_blobs<T: BeaconChainTypes>(
9191
.await
9292
.map_err(FetchEngineBlobError::RequestFailed)?;
9393

94-
if response.is_empty() {
94+
if response.is_empty() || response.iter().all(|opt| opt.is_none()) {
9595
debug!(
9696
log,
9797
"No blobs fetched from the EL";

0 commit comments

Comments
 (0)