diff --git a/specs/core/0_beacon-chain.md b/specs/core/0_beacon-chain.md index 801be22f0..da107dad5 100644 --- a/specs/core/0_beacon-chain.md +++ b/specs/core/0_beacon-chain.md @@ -1794,7 +1794,7 @@ def get_previous_total_balance(state: BeaconState) -> Gwei: ```python def get_previous_attestations(state: BeaconState) -> List[PendingAttestation]: - return [a for a in state.latest_attestations if previous_epoch == slot_to_epoch(a.data.slot)] + return [a for a in state.latest_attestations if get_previous_epoch(state) == slot_to_epoch(a.data.slot)] ``` ```python