Skip to content

Commit

Permalink
Fix notify_forkchoice_updated not being called on head change issue
Browse files Browse the repository at this point in the history
  • Loading branch information
povi committed Oct 31, 2024
1 parent a01e0e9 commit 931fad7
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions fork_choice_control/src/mutator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1723,17 +1723,15 @@ where
let safe_block_hash = self.store.safe_execution_payload_hash();
let finalized_block_hash = self.store.finalized_execution_payload_hash();

if !new_head.is_valid() {
let head_block_hash = state.latest_execution_payload_header().block_hash();

self.execution_engine.notify_forkchoice_updated(
head_block_hash,
safe_block_hash,
finalized_block_hash,
Either::Left(new_head.block.phase()),
None,
);
}
let head_block_hash = state.latest_execution_payload_header().block_hash();

self.execution_engine.notify_forkchoice_updated(
head_block_hash,
safe_block_hash,
finalized_block_hash,
Either::Left(new_head.block.phase()),
None,
);
}

fn delay_block_until_blobs(&mut self, beacon_block_root: H256, pending_block: PendingBlock<P>) {
Expand Down

0 comments on commit 931fad7

Please sign in to comment.