mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-02-17 21:16:52 +00:00
Update specs/core/0_beacon-chain.md
Co-Authored-By: vbuterin <v@buterin.com>
This commit is contained in:
parent
648c35dc3d
commit
7736843917
@ -916,7 +916,7 @@ def get_current_epoch_committee_count_per_slot(state: BeaconState) -> int:
|
|||||||
def get_shard_committees_at_slot(state: BeaconState,
|
def get_shard_committees_at_slot(state: BeaconState,
|
||||||
slot: int) -> List[Tuple[List[int], int]]:
|
slot: int) -> List[Tuple[List[int], int]]:
|
||||||
"""
|
"""
|
||||||
Returns (i) the list of committees and (ii) the shard associated with the first committee for the ``slot``.
|
Returns the list of ``(committee, shard)`` tuples for the ``slot``.
|
||||||
"""
|
"""
|
||||||
earliest_slot = state.slot - (state.slot % EPOCH_LENGTH) - EPOCH_LENGTH
|
earliest_slot = state.slot - (state.slot % EPOCH_LENGTH) - EPOCH_LENGTH
|
||||||
assert earliest_slot <= slot < earliest_slot + EPOCH_LENGTH * 2
|
assert earliest_slot <= slot < earliest_slot + EPOCH_LENGTH * 2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user