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:
parent
7664776fc4
commit
c2604c47d6
@ -1332,15 +1332,6 @@ where
|
|||||||
return Ok(true);
|
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.
|
// If the parent block has execution enabled, always import the block.
|
||||||
//
|
//
|
||||||
// See:
|
// See:
|
||||||
|
Loading…
Reference in New Issue
Block a user