Skip to content

Commit

Permalink
Optimistic sync: remove justified block check (#3477)
Browse files Browse the repository at this point in the history
## Issue Addressed

Implements spec change ethereum/consensus-specs#2881

## Proposed Changes

Remove the justified block check from `is_optimistic_candidate_block`.
  • Loading branch information
michaelsproul committed Aug 17, 2022
1 parent 7664776 commit c2604c4
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions consensus/fork_choice/src/fork_choice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit c2604c4

Please sign in to comment.