previous epoch uses -1 in all cases

This commit is contained in:
Danny Ryan
2019-03-04 17:27:53 -07:00
parent d4a4c73599
commit 66105b01e4

View File

@@ -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`