mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-02-26 01:05:15 +00:00
Tidy tab formatting
This commit is contained in:
parent
fb520a8356
commit
d1851dce21
@ -86,8 +86,8 @@ def is_optimistic(block: BeaconBlock) -> bool:
|
|||||||
```python
|
```python
|
||||||
def latest_valid_ancestor(block: BeaconBlock) -> BeaconBlock:
|
def latest_valid_ancestor(block: BeaconBlock) -> BeaconBlock:
|
||||||
while block.parent_root != Root():
|
while block.parent_root != Root():
|
||||||
if not is_optimistic(block) or block.parent_root == Root():
|
if not is_optimistic(block) or block.parent_root == Root():
|
||||||
return block
|
return block
|
||||||
block = get_block(block.parent_root)
|
block = get_block(block.parent_root)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user