From 7c492ce4ce5043f1d8f32d8d02ab76642774fe87 Mon Sep 17 00:00:00 2001 From: terence tsao Date: Sun, 6 Feb 2022 13:32:21 -0800 Subject: [PATCH] Fix typo --- sync/optimistic.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sync/optimistic.md b/sync/optimistic.md index b44384d34..8e6acc442 100644 --- a/sync/optimistic.md +++ b/sync/optimistic.md @@ -82,9 +82,9 @@ def is_execution_block(block: BeaconBlock) -> bool: ```python def is_optimistic_candidate_block(opt_store: OptimisticStore, current_slot: Slot, block: BeaconBlock) -> bool: justified_root = opt_store.block_states[opt_store.head_block_root].current_justified_checkpoint.root - justifed_is_execution_block = is_execution_block(opt_store.blocks[justified_root]) + justified_is_execution_block = is_execution_block(opt_store.blocks[justified_root]) block_is_deep = block.slot + SAFE_SLOTS_TO_IMPORT_OPTIMISTICALLY <= current_slot - return justifed_is_execution_block or block_is_deep + return justified_is_execution_block or block_is_deep ``` Let only a node which returns `is_optimistic(opt_store, head) is True` be an *optimistic