Update specs/core/0_beacon-chain.md

Co-Authored-By: vbuterin <v@buterin.com>
This commit is contained in:
Hsiao-Wei Wang 2019-03-03 03:56:12 -06:00 committed by GitHub
parent c42cab87a7
commit 2d6697eb62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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