don't block mev boost till genesis finalization

This commit is contained in:
realbigsean
2024-05-15 08:36:24 -04:00
parent 01dc321c82
commit 37bcba2f2a

View File

@@ -6496,9 +6496,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 {