Update beacon_node/beacon_chain/src/execution_payload.rs

Co-authored-by: realbigsean <seananderson33@GMAIL.com>
This commit is contained in:
ethDreamer
2022-02-22 11:42:58 -06:00
committed by Mark Mackey
parent b3cce88acd
commit a6fce33d7b

View File

@@ -144,7 +144,7 @@ pub fn validate_merge_block<T: BeaconChainTypes>(
// 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
// 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 {
debug!(
chain.log,