Skip to content

Commit

Permalink
Notify forkchoice updated fix
Browse files Browse the repository at this point in the history
  • Loading branch information
povi committed Oct 31, 2024
1 parent 4bcbfac commit a72cc49
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 a72cc49

Please sign in to comment.