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
defget_attesting_indices(state: BeaconState,
data: AttestationData,
bits: Bitlist[MAX_VALIDATORS_PER_COMMITTEE]) ->Set[ValidatorIndex]:
""" Return the set of attesting indices corresponding to ``data`` and ``bits``. """committee=get_beacon_committee(state, data.slot, data.index)
returnset(indexfori, indexinenumerate(committee) ifbits[i])
Becomes
defget_attesting_indices(state: BeaconState, attestation: Attestation) ->Set[ValidatorIndex]:
""" Return the set of attesting indices corresponding to ``data`` and ``bits``. """committee=get_beacon_committee(state, attestation.data.slot, attestation.data.index)
returnset(indexfori, indexinenumerate(committee) ifattestation.aggregation_bits[i])
Refactor get_attesting_indices
Becomes
Link to the spec change
The text was updated successfully, but these errors were encountered: