@@ -22,15 +22,15 @@ export
2222func count_active_validators * (epochInfo: EpochRef ): uint64 =
2323 epochInfo.shuffled_active_validator_indices.lenu64
2424
25- # https://github.com/ethereum/consensus-specs/blob/v1.1.5 /specs/phase0/beacon-chain.md#get_committee_count_per_slot
25+ # https://github.com/ethereum/consensus-specs/blob/v1.1.6 /specs/phase0/beacon-chain.md#get_committee_count_per_slot
2626func get_committee_count_per_slot * (epochInfo: EpochRef ): uint64 =
2727 get_committee_count_per_slot (count_active_validators (epochInfo))
2828
2929iterator get_committee_indices * (epochRef: EpochRef ): CommitteeIndex =
3030 for i in 0 'u64 ..< get_committee_count_per_slot (epochRef):
3131 yield CommitteeIndex (i)
3232
33- # https://github.com/ethereum/consensus-specs/blob/v1.1.5 /specs/phase0/beacon-chain.md#get_beacon_committee
33+ # https://github.com/ethereum/consensus-specs/blob/v1.1.6 /specs/phase0/beacon-chain.md#get_beacon_committee
3434iterator get_beacon_committee * (
3535 epochRef: EpochRef , slot: Slot , index: CommitteeIndex ): ValidatorIndex =
3636 # # Return the beacon committee at ``slot`` for ``index``.
@@ -43,7 +43,7 @@ iterator get_beacon_committee*(
4343 committees_per_slot * SLOTS_PER_EPOCH
4444 ): yield idx
4545
46- # https://github.com/ethereum/consensus-specs/blob/v1.1.5 /specs/phase0/beacon-chain.md#get_beacon_committee
46+ # https://github.com/ethereum/consensus-specs/blob/v1.1.6 /specs/phase0/beacon-chain.md#get_beacon_committee
4747func get_beacon_committee * (
4848 epochRef: EpochRef , slot: Slot , index: CommitteeIndex ): seq [ValidatorIndex ] =
4949 # # Return the beacon committee at ``slot`` for ``index``.
@@ -56,7 +56,7 @@ func get_beacon_committee*(
5656 committees_per_slot * SLOTS_PER_EPOCH
5757 )
5858
59- # https://github.com/ethereum/consensus-specs/blob/v1.1.5 /specs/phase0/beacon-chain.md#get_beacon_committee
59+ # https://github.com/ethereum/consensus-specs/blob/v1.1.6 /specs/phase0/beacon-chain.md#get_beacon_committee
6060func get_beacon_committee_len * (
6161 epochRef: EpochRef , slot: Slot , index: CommitteeIndex ): uint64 =
6262 # # Return the number of members in the beacon committee at ``slot`` for ``index``.
@@ -70,7 +70,7 @@ func get_beacon_committee_len*(
7070 committees_per_slot * SLOTS_PER_EPOCH
7171 )
7272
73- # https://github.com/ethereum/consensus-specs/blob/v1.1.5 /specs/phase0/beacon-chain.md#get_attesting_indices
73+ # https://github.com/ethereum/consensus-specs/blob/v1.1.6 /specs/phase0/beacon-chain.md#get_attesting_indices
7474iterator get_attesting_indices * (epochRef: EpochRef ,
7575 data: AttestationData ,
7676 bits: CommitteeValidatorsBits ):
@@ -105,7 +105,7 @@ func get_attesting_indices_one*(epochRef: EpochRef,
105105 inc i
106106 res
107107
108- # https://github.com/ethereum/consensus-specs/blob/v1.1.5 /specs/phase0/beacon-chain.md#get_attesting_indices
108+ # https://github.com/ethereum/consensus-specs/blob/v1.1.6 /specs/phase0/beacon-chain.md#get_attesting_indices
109109func get_attesting_indices * (epochRef: EpochRef ,
110110 data: AttestationData ,
111111 bits: CommitteeValidatorsBits ):
@@ -114,7 +114,7 @@ func get_attesting_indices*(epochRef: EpochRef,
114114 for idx in get_attesting_indices (epochRef, data, bits):
115115 result .add (idx)
116116
117- # https://github.com/ethereum/consensus-specs/blob/v1.1.5 /specs/phase0/beacon-chain.md#is_valid_indexed_attestation
117+ # https://github.com/ethereum/consensus-specs/blob/v1.1.6 /specs/phase0/beacon-chain.md#is_valid_indexed_attestation
118118proc is_valid_indexed_attestation * (
119119 fork: Fork , genesis_validators_root: Eth2Digest ,
120120 epochRef: EpochRef ,
@@ -159,7 +159,7 @@ func makeAttestationData*(
159159
160160 doAssert current_epoch == epochRef.epoch
161161
162- # https://github.com/ethereum/consensus-specs/blob/v1.1.5 /specs/phase0/validator.md#attestation-data
162+ # https://github.com/ethereum/consensus-specs/blob/v1.1.6 /specs/phase0/validator.md#attestation-data
163163 AttestationData (
164164 slot: slot,
165165 index: committee_index.uint64 ,
@@ -171,7 +171,7 @@ func makeAttestationData*(
171171 )
172172 )
173173
174- # https://github.com/ethereum/consensus-specs/blob/v1.1.5 /specs/phase0/validator.md#validator-assignments
174+ # https://github.com/ethereum/consensus-specs/blob/v1.1.6 /specs/phase0/validator.md#validator-assignments
175175iterator get_committee_assignments * (
176176 epochRef: EpochRef , validator_indices: HashSet [ValidatorIndex ]):
177177 tuple [subcommitteeIdx: CommitteeIndex ,
0 commit comments