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
No known key found for this signature in database
GPG Key ID: 2765A792E42CE07A
1 changed files with 1 additions and 1 deletions

View File

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