-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Implement new initiate validator exit function #2366
Conversation
Codecov Report
@@ Coverage Diff @@
## spec-v0.6 #2366 +/- ##
==========================================
Coverage 68.71% 68.71%
==========================================
Files 119 119
Lines 9413 9413
==========================================
Hits 6468 6468
Misses 2262 2262
Partials 683 683 |
return state | ||
} | ||
|
||
// Aggregate all the exit epochs from the last. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From the last what?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed
} | ||
|
||
// Aggregate all the exit epochs from the last. | ||
var exitedEpochs []uint64 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like you are looking only for the highest epoch, no need to store all of them in an array and iterate over them to find the highest epoch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great feedback, this simplified it by a lot
Part of #2307
Updated:
InitiateValidatorExit
InitiateValidatorExit