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

Remove redundant check in exit.go #6559

Merged
merged 6 commits into from Jul 13, 2020

Conversation

JustinDrake
Copy link
Contributor

The check exit.Exit.ValidatorIndex >= uint64(beaconState.NumValidators()) is done in beaconState.ValidatorAtIndexReadOnly(exit.Exit.ValidatorIndex). This is a minor cleanup.

The check `exit.Exit.ValidatorIndex >= uint64(beaconState.NumValidators())` is done in `beaconState.ValidatorAtIndexReadOnly(exit.Exit.ValidatorIndex)`.
@CLAassistant
Copy link

CLAassistant commented Jul 11, 2020

CLA assistant check
All committers have signed the CLA.

@codecov
Copy link

codecov bot commented Jul 11, 2020

Codecov Report

Merging #6559 into master will decrease coverage by 0.18%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #6559      +/-   ##
==========================================
- Coverage   61.97%   61.78%   -0.19%     
==========================================
  Files         367      366       -1     
  Lines       28799    28624     -175     
==========================================
- Hits        17848    17686     -162     
- Misses       8523     8525       +2     
+ Partials     2428     2413      -15     

Copy link
Member

@nisdas nisdas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks !

@prylabs-bulldozer prylabs-bulldozer bot merged commit ec800ba into prysmaticlabs:master Jul 13, 2020
JustinDrake added a commit to JustinDrake/prysm that referenced this pull request Jul 13, 2020
The number of indices, by construction, will be no more than `MAX_VALIDATORS_PER_COMMITTEE` because the SSZ type of `indexedAttestation.AttestingIndices` is a list with max size `MAX_VALIDATORS_PER_COMMITTEE`. This is a minor cleanup similar to prysmaticlabs#6559.
@farazdagi farazdagi mentioned this pull request Jul 24, 2020
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants