Skip to content

Commit

Permalink
Rename justified_is_verified
Browse files Browse the repository at this point in the history
  • Loading branch information
paulhauner committed Jan 18, 2022
1 parent 24947be commit be4319a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sync/optimistic.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ def is_execution_block(block: BeaconBlock) -> BeaconBlock:
```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_verified = is_execution_block(opt_store.blocks[justified_root])
justifed_is_execution_block = is_execution_block(opt_store.blocks[justified_root])
block_is_deep = block.slot + SAFE_SLOTS_TO_IMPORT_OPTIMISTICALLY <= current_slot
return justified_is_verified or block_is_deep
return justifed_is_execution_block or block_is_deep
```

Let only a node which returns `is_optimistic(opt_store, head) is True` be an *optimistic
Expand Down

0 comments on commit be4319a

Please sign in to comment.