From c2604c47d6d286728f36563bb503a7a0d4a7bf57 Mon Sep 17 00:00:00 2001 From: Michael Sproul Date: Wed, 17 Aug 2022 02:36:41 +0000 Subject: [PATCH] Optimistic sync: remove justified block check (#3477) ## Issue Addressed Implements spec change https://github.com/ethereum/consensus-specs/pull/2881 ## Proposed Changes Remove the justified block check from `is_optimistic_candidate_block`. --- consensus/fork_choice/src/fork_choice.rs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/consensus/fork_choice/src/fork_choice.rs b/consensus/fork_choice/src/fork_choice.rs index c8d119a99..3341fc5c2 100644 --- a/consensus/fork_choice/src/fork_choice.rs +++ b/consensus/fork_choice/src/fork_choice.rs @@ -1332,15 +1332,6 @@ where return Ok(true); } - // If the justified block has execution enabled, then optimistically import any block. - if self - .get_justified_block()? - .execution_status - .is_execution_enabled() - { - return Ok(true); - } - // If the parent block has execution enabled, always import the block. // // See: