From 393c5bcb8a190d18fd08f319d4107c694a378f96 Mon Sep 17 00:00:00 2001 From: realbigsean Date: Mon, 27 May 2024 03:31:44 -0400 Subject: [PATCH] don't block mev boost till genesis finalization (#5834) * don't block mev boost till genesis finalization --- beacon_node/beacon_chain/src/beacon_chain.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/beacon_node/beacon_chain/src/beacon_chain.rs b/beacon_node/beacon_chain/src/beacon_chain.rs index 0bc0a4a2d3..9a28f0cdbf 100644 --- a/beacon_node/beacon_chain/src/beacon_chain.rs +++ b/beacon_node/beacon_chain/src/beacon_chain.rs @@ -6420,9 +6420,8 @@ impl BeaconChain { /// account the current slot when accounting for skips. pub fn is_healthy(&self, parent_root: &Hash256) -> Result { 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 {