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
EpochProcess: Prepare activeValidatorIndices for the next epoch #2871
Conversation
Code Climate has analyzed commit 273c211 and detected 0 issues on this pull request. View more on Code Climate. |
Performance Report✔️ no performance regression detected Full benchmark results
|
@@ -145,6 +148,11 @@ export function prepareEpochProcessState<T extends allForks.BeaconState>(state: | |||
|
|||
out.statuses.push(status); | |||
out.indicesBounded.push([i, v.activationEpoch, v.exitEpoch]); | |||
if (nextEpoch >= config.ALTAIR_FORK_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.
This can be precalculated above this loop
7145a84
to
d34f6b5
Compare
d34f6b5
to
273c211
Compare
Since we have
|
👍 Nice approach! This PR relies on @tuyennhv please if possible tackle in a new PR |
Motivation
rotateEpoch
Description
IEpochProcess
at the end of the previous epoch to save 1 validators loopCloses #2866
Steps to test or reproduce
altair-devnet-1