Fix typo in `get_start_shard`
This commit is contained in:
parent
33552279bf
commit
34d42b640d
|
@ -520,7 +520,7 @@ def get_start_shard(state: BeaconState, slot: Slot) -> Shard:
|
||||||
"""
|
"""
|
||||||
Return the start shard at ``slot``.
|
Return the start shard at ``slot``.
|
||||||
"""
|
"""
|
||||||
epoch = compute_epoch_at_slot(Slot(_slot))
|
epoch = compute_epoch_at_slot(Slot(slot))
|
||||||
committee_count = get_committee_count_per_slot(state, epoch)
|
committee_count = get_committee_count_per_slot(state, epoch)
|
||||||
active_shard_count = get_active_shard_count(state, epoch)
|
active_shard_count = get_active_shard_count(state, epoch)
|
||||||
return committee_count * slot % active_shard_count
|
return committee_count * slot % active_shard_count
|
||||||
|
|
Loading…
Reference in New Issue