don't block mev boost till genesis finalization (#5834)

* don't block mev boost till genesis finalization
This commit is contained in:
realbigsean
2024-05-27 03:31:44 -04:00
committed by GitHub
parent e4984217a6
commit 393c5bcb8a

View File

@@ -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 {