Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename index vars in get_attesting_indices() #3996

Merged
merged 1 commit into from
Oct 27, 2024

Conversation

jtraglia
Copy link
Member

I found this function a little confusing because the index variable is shadowed.

  1. for index in committee_indices:
  2. for i, index in enumerate(committee)

I think it would be good to rename this so it's clear which index is used.

@jtraglia jtraglia mentioned this pull request Oct 23, 2024
15 tasks
@jtraglia jtraglia merged commit 734938c into ethereum:dev Oct 27, 2024
25 checks passed
@jtraglia jtraglia deleted the shadowed-index-var branch October 27, 2024 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants