Skip to content

Commit 6d269dd

Browse files
committed
Avoid sending fcU with zero hash
1 parent aea43b6 commit 6d269dd

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

beacon_node/execution_layer/src/engines.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,16 @@ impl<T: EngineApi> Engines<T> {
150150
let latest_forkchoice_state = self.get_latest_forkchoice_state().await;
151151

152152
if let Some(forkchoice_state) = latest_forkchoice_state {
153+
if forkchoice_state.head_block_hash == ExecutionBlockHash::zero() {
154+
debug!(
155+
self.log,
156+
"No need to call forkchoiceUpdated";
157+
"msg" => "head does not have execution enabled",
158+
"id" => &engine.id,
159+
);
160+
return;
161+
}
162+
153163
info!(
154164
self.log,
155165
"Issuing forkchoiceUpdated";

0 commit comments

Comments
 (0)