mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-01-13 04:04:19 +00:00
Update specs/core/1_new_shards.md
Co-Authored-By: Hsiao-Wei Wang <hwwang156@gmail.com>
This commit is contained in:
parent
9810a3d260
commit
4d1e9e15c6
@ -293,7 +293,7 @@ def is_valid_indexed_attestation(state: BeaconState, indexed_attestation: Indexe
|
|||||||
|
|
||||||
```python
|
```python
|
||||||
def get_shard(state: BeaconState, attestation: Attestation) -> Shard:
|
def get_shard(state: BeaconState, attestation: Attestation) -> Shard:
|
||||||
return (attestation.data.index + get_start_shard(state, data.slot)) % ACTIVE_SHARDS
|
return Shard((attestation.data.index + get_start_shard(state, data.slot)) % ACTIVE_SHARDS)
|
||||||
```
|
```
|
||||||
|
|
||||||
## Beacon Chain Changes
|
## Beacon Chain Changes
|
||||||
|
Loading…
x
Reference in New Issue
Block a user