You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A validator may be a member of the new Inclusion List Committee (ILC) for a given slot. To check for ILC assignments the validator uses the helper get_inclusion_committee_assignment(state, epoch, validator_index) where epoch <= next_epoch.
Inclusion list committee selection is only stable within the context of the current and next epoch.
defget_inclusion_committee_assignment(
state: BeaconState,
epoch: Epoch,
validator_index: ValidatorIndex) ->Optional[Slot]:
""" Returns the slot during the requested epoch in which the validator with index ``validator_index`` is a member of the ILC. Returns None if no assignment is found. """next_epoch=Epoch(get_current_epoch(state) +1)
assertepoch<=next_epochstart_slot=compute_start_slot_at_epoch(epoch)
forslotinrange(start_slot, start_slot+SLOTS_PER_EPOCH):
ifvalidator_indexinget_inclusion_list_committee(state, Slot(slot)):
returnSlot(slot)
returnNone
New inclusion list committee assignment
A validator may be a member of the new Inclusion List Committee (ILC) for a given slot. To check for ILC assignments the validator uses the helper
get_inclusion_committee_assignment(state, epoch, validator_index)
whereepoch <= next_epoch
.Inclusion list committee selection is only stable within the context of the current and next epoch.
Beacon State accessors
get_inclusion_list_committee
The text was updated successfully, but these errors were encountered: