Skip to content

Commit 302e225

Browse files
committed
Avoid computing columns from EL blobs if block has already been imported (sigp#6816)
Squashed commit of the following: commit b3584ac Author: Jimmy Chen <[email protected]> Date: Fri Jan 17 22:39:16 2025 +1100 Avoid computing columns from EL blobs if block has already been imported.
1 parent b32299f commit 302e225

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

beacon_node/beacon_chain/src/fetch_blobs.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,20 @@ pub async fn fetch_and_process_engine_blobs<T: BeaconChainTypes>(
163163
return Ok(None);
164164
}
165165

166+
if chain
167+
.canonical_head
168+
.fork_choice_read_lock()
169+
.contains_block(&block_root)
170+
{
171+
// Avoid computing columns if block has already been imported.
172+
debug!(
173+
log,
174+
"Ignoring EL blobs response";
175+
"info" => "block has already been imported",
176+
);
177+
return Ok(None);
178+
}
179+
166180
let data_columns_receiver = spawn_compute_and_publish_data_columns_task(
167181
&chain,
168182
block.clone(),

0 commit comments

Comments
 (0)