Skip to content

Commit

Permalink
don't block mev boost till genesis finalization (#5834)
Browse files Browse the repository at this point in the history
* don't block mev boost till genesis finalization
  • Loading branch information
realbigsean authored May 27, 2024
1 parent e498421 commit 393c5bc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions beacon_node/beacon_chain/src/beacon_chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6420,9 +6420,8 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
/// account the current slot when accounting for skips.
pub fn is_healthy(&self, parent_root: &Hash256) -> Result<ChainHealth, Error> {
let cached_head = self.canonical_head.cached_head();
// Check if the merge has been finalized.
if let Some(finalized_hash) = cached_head.forkchoice_update_parameters().finalized_hash {
if ExecutionBlockHash::zero() == finalized_hash {
if let Some(head_hash) = cached_head.forkchoice_update_parameters().head_hash {
if ExecutionBlockHash::zero() == head_hash {
return Ok(ChainHealth::PreMerge);
}
} else {
Expand Down

0 comments on commit 393c5bc

Please sign in to comment.