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`.
This commit is contained in:
Michael Sproul 2022-08-17 02:36:41 +00:00
parent 7664776fc4
commit c2604c47d6

View File

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