mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-02-16 12:36:25 +00:00
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…
x
Reference in New Issue
Block a user