mirror of
https://github.com/ethereum/consensus-specs.git
synced 2026-02-03 07:25:01 -05:00
Update specs/core/1_new_shards.md
Co-Authored-By: Hsiao-Wei Wang <hwwang156@gmail.com>
This commit is contained in:
@@ -320,7 +320,7 @@ def get_shard(state: BeaconState, attestation: Attestation) -> Shard:
|
||||
#### `validate_attestation`
|
||||
|
||||
```python
|
||||
def validate_attestation(state: BeaconState, attestation: Attestation) -> bool:
|
||||
def validate_attestation(state: BeaconState, attestation: Attestation) -> None:
|
||||
data = attestation.data
|
||||
assert data.index < ACTIVE_SHARDS
|
||||
shard = get_shard(state, attestation)
|
||||
|
||||
Reference in New Issue
Block a user