Variable max attestation length

This commit is contained in:
Vitalik Buterin
2019-10-13 17:13:52 +09:00
committed by Danny Ryan
parent 26df98bf61
commit fe60b4deba

View File

@@ -211,6 +211,8 @@ def process_attestation(state: BeaconState, attestation: Attestation) -> None:
state.previous_epoch_attestations.append(pending_attestation)
```
Check the length of attestations using `len(block.attestations) <= 4 * get_committee_count(state, state.slot)`.
### Light client processing
```python