Skip to content

Commit

Permalink
Optimistic sync: remove justified block check (sigp#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 authored and Woodpile37 committed Jan 6, 2024
1 parent 310c281 commit 6344706
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 6344706

Please sign in to comment.