mirror of
https://github.com/ethereum/consensus-specs.git
synced 2026-02-02 20:55:05 -05:00
previous epoch uses -1 in all cases
This commit is contained in:
@@ -707,7 +707,7 @@ def get_previous_epoch(state: BeaconState) -> Epoch:
|
||||
"""`
|
||||
Return the previous epoch of the given ``state``.
|
||||
"""
|
||||
return max(get_current_epoch(state) - 1, GENESIS_EPOCH)
|
||||
return get_current_epoch(state) - 1
|
||||
```
|
||||
|
||||
### `get_current_epoch`
|
||||
|
||||
Reference in New Issue
Block a user