mirror of
https://github.com/ethereum/consensus-specs.git
synced 2026-02-02 12:55:10 -05:00
Update specs/core/0_beacon-chain.md
Co-Authored-By: vbuterin <v@buterin.com>
This commit is contained in:
@@ -1689,7 +1689,7 @@ Verify that `len(block.body.attestations) <= MAX_ATTESTATIONS`.
|
||||
For each `attestation` in `block.body.attestations`, run the following function:
|
||||
|
||||
```python
|
||||
def process_attestation(attestation: Attestation, state: BeaconState):
|
||||
def process_attestation(state: BeaconState, attestation: Attestation) -> None:
|
||||
# Can't submit attestations that are too far in history (or in prehistory)
|
||||
assert attestation.data.slot >= GENESIS_SLOT
|
||||
assert state.slot < attestation.data.slot + SLOTS_PER_EPOCH
|
||||
|
||||
Reference in New Issue
Block a user