mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-02-19 14:04: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`
|
#### `validate_attestation`
|
||||||
|
|
||||||
```python
|
```python
|
||||||
def validate_attestation(state: BeaconState, attestation: Attestation) -> bool:
|
def validate_attestation(state: BeaconState, attestation: Attestation) -> None:
|
||||||
data = attestation.data
|
data = attestation.data
|
||||||
assert data.index < ACTIVE_SHARDS
|
assert data.index < ACTIVE_SHARDS
|
||||||
shard = get_shard(state, attestation)
|
shard = get_shard(state, attestation)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user