previous epoch uses -1 in all cases
This commit is contained in:
parent
d4a4c73599
commit
66105b01e4
|
@ -707,7 +707,7 @@ def get_previous_epoch(state: BeaconState) -> Epoch:
|
||||||
"""`
|
"""`
|
||||||
Return the previous epoch of the given ``state``.
|
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`
|
### `get_current_epoch`
|
||||||
|
|
Loading…
Reference in New Issue