Update specs/core/0_beacon-chain.md
Co-Authored-By: vbuterin <v@buterin.com>
This commit is contained in:
parent
c42cab87a7
commit
2d6697eb62
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue