Removes naming conflict in get_shuffling.

The variable name 'slot' in the for-loop in 'get_shuffling' conflicts with the get_shuffling argument name 'slot'. Renames 'slot' in for-loop to 'slot_num'.
This commit is contained in:
Akhila Raju 2019-01-07 13:06:44 -05:00 committed by GitHub
parent 14e14ce576
commit b78458bbb2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -885,11 +885,11 @@ def get_shuffling(seed: Hash32,
validators_per_slot = split(shuffled_active_validator_indices, EPOCH_LENGTH)
output = []
for slot, slot_indices in enumerate(validators_per_slot):
for slot_num, slot_indices in enumerate(validators_per_slot):
# Split the shuffled list into committees_per_slot pieces
shard_indices = split(slot_indices, committees_per_slot)
shard_id_start = crosslinking_start_shard + slot * committees_per_slot
shard_id_start = crosslinking_start_shard + slot_num * committees_per_slot
shard_committees = [
ShardCommittee(