mirror of
https://github.com/ethereum/consensus-specs.git
synced 2026-02-02 14:35:04 -05:00
Update specs/core/1_new_shards.md
Co-Authored-By: Hsiao-Wei Wang <hwwang156@gmail.com>
This commit is contained in:
@@ -290,7 +290,7 @@ def is_valid_indexed_attestation(state: BeaconState, indexed_attestation: Indexe
|
||||
### `get_attestation_shard`
|
||||
|
||||
```python
|
||||
def get_shard(state: BeaconState, attestation: Attestation):
|
||||
def get_shard(state: BeaconState, attestation: Attestation) -> Shard:
|
||||
return (attestation.data.index + get_start_shard(state, data.slot)) % ACTIVE_SHARDS
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user