From ba171ab556bcb03afd780e0af29b059dacc52c17 Mon Sep 17 00:00:00 2001 From: ethDreamer <37123614+ethDreamer@users.noreply.github.com> Date: Mon, 28 Feb 2022 11:45:37 -0600 Subject: [PATCH] Update beacon_node/beacon_chain/src/execution_payload.rs Co-authored-by: Paul Hauner --- beacon_node/beacon_chain/src/execution_payload.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beacon_node/beacon_chain/src/execution_payload.rs b/beacon_node/beacon_chain/src/execution_payload.rs index 5dae3ebfae..57891c1cbc 100644 --- a/beacon_node/beacon_chain/src/execution_payload.rs +++ b/beacon_node/beacon_chain/src/execution_payload.rs @@ -145,7 +145,7 @@ pub fn validate_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/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 block.slot() + chain.spec.safe_slots_to_import_optimistically <= current_slot { debug!( chain.log, "Optimistically accepting terminal block";