mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-02-22 23:38:13 +00:00
Add comment about INVALID block
This commit is contained in:
parent
0ae80d9382
commit
de1a6caa5d
@ -47,6 +47,7 @@ def is_optimistic(store: Store, block: BeaconBlock) -> bool:
|
||||
|
||||
```python
|
||||
def latest_verified_ancestor(store: Store, block: BeaconBlock) -> BeaconBlock:
|
||||
# It is assumed that the `block` parameter is never an INVALID block.
|
||||
while True:
|
||||
if not is_optimistic(store, block) or block.parent_root == Root():
|
||||
return block
|
||||
|
Loading…
x
Reference in New Issue
Block a user