mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-02-03 06:13:31 +00:00
Fixed doc in get_checkpoint_block
This commit is contained in:
parent
313439a04b
commit
ffb84598cf
@ -198,7 +198,7 @@ def get_ancestor(store: Store, root: Root, slot: Slot) -> Root:
|
|||||||
```python
|
```python
|
||||||
def get_checkpoint_block(store: Store, root: Root, epoch: Epoch) -> Root:
|
def get_checkpoint_block(store: Store, root: Root, epoch: Epoch) -> Root:
|
||||||
"""
|
"""
|
||||||
Compute the epoch boundary block for epoch ``epoch`` in the chain of block ``root``
|
Compute the checkpoint block for epoch ``epoch`` in the chain of block ``root``
|
||||||
"""
|
"""
|
||||||
epoch_first_slot = compute_start_slot_at_epoch(epoch)
|
epoch_first_slot = compute_start_slot_at_epoch(epoch)
|
||||||
return get_ancestor(store, root, epoch_first_slot)
|
return get_ancestor(store, root, epoch_first_slot)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user