Update specs/core/1_new_shards.md
Co-Authored-By: Hsiao-Wei Wang <hwwang156@gmail.com>
This commit is contained in:
parent
d3f9bfe68d
commit
d59e87f876
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue