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…
Reference in New Issue