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:57:27 -06:00 committed by GitHub
parent fa613b401f
commit 1103fd1ee8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1779,7 +1779,7 @@ We define some helper functions:
```python
def get_current_attestations(state: BeaconState) -> List[PendingAttestation]:
return [a for a in state.latest_attestations if current_epoch == slot_to_epoch(a.data.slot)]
return [a for a in state.latest_attestations if get_current_epoch(state) == slot_to_epoch(a.data.slot)]
```
```python