mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-26 17:23:41 +00:00
Update beacon_node/beacon_chain/src/execution_payload.rs
Co-authored-by: realbigsean <seananderson33@GMAIL.com>
This commit is contained in:
@@ -144,7 +144,7 @@ pub fn validate_merge_block<T: BeaconChainTypes>(
|
|||||||
// Check the optimistic sync conditions. Note that because this is the merge block,
|
// Check the optimistic sync conditions. Note that because this is the merge block,
|
||||||
// the justified checkpoint can't have execution enabled so we only need to check the
|
// the justified checkpoint can't have execution enabled so we only need to check the
|
||||||
// current slot is at least SAFE_SLOTS_TO_IMPORT_OPTIMISTICALLY ahead of the block
|
// current slot is at least SAFE_SLOTS_TO_IMPORT_OPTIMISTICALLY ahead of the block
|
||||||
// https://github.com/sigp/consensus-specs/blob/opt-sync-2/sync/optimistic.md#when-to-optimistically-import-blocks
|
// https://github.com/ethereum/consensus-specs/blob/v1.1.9/sync/optimistic.md#when-to-optimistically-import-blocks
|
||||||
if current_slot - block.slot() >= chain.spec.safe_slots_to_import_optimistically {
|
if current_slot - block.slot() >= chain.spec.safe_slots_to_import_optimistically {
|
||||||
debug!(
|
debug!(
|
||||||
chain.log,
|
chain.log,
|
||||||
|
|||||||
Reference in New Issue
Block a user