change slot_num to slot_position
This commit is contained in:
parent
b78458bbb2
commit
609082c1af
|
@ -885,11 +885,11 @@ def get_shuffling(seed: Hash32,
|
||||||
validators_per_slot = split(shuffled_active_validator_indices, EPOCH_LENGTH)
|
validators_per_slot = split(shuffled_active_validator_indices, EPOCH_LENGTH)
|
||||||
|
|
||||||
output = []
|
output = []
|
||||||
for slot_num, slot_indices in enumerate(validators_per_slot):
|
for slot_position, slot_indices in enumerate(validators_per_slot):
|
||||||
# Split the shuffled list into committees_per_slot pieces
|
# Split the shuffled list into committees_per_slot pieces
|
||||||
shard_indices = split(slot_indices, committees_per_slot)
|
shard_indices = split(slot_indices, committees_per_slot)
|
||||||
|
|
||||||
shard_id_start = crosslinking_start_shard + slot_num * committees_per_slot
|
shard_id_start = crosslinking_start_shard + slot_position * committees_per_slot
|
||||||
|
|
||||||
shard_committees = [
|
shard_committees = [
|
||||||
ShardCommittee(
|
ShardCommittee(
|
||||||
|
|
Loading…
Reference in New Issue