-
-
Notifications
You must be signed in to change notification settings - Fork 289
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
fix: improve processEffectiveBalanceUpdates #7043
fix: improve processEffectiveBalanceUpdates #7043
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## electra-fork-rebasejul30 #7043 +/- ##
============================================================
- Coverage 49.39% 49.37% -0.03%
============================================================
Files 589 589
Lines 39217 39233 +16
Branches 2250 2243 -7
============================================================
- Hits 19372 19371 -1
- Misses 19804 19821 +17
Partials 41 41 |
Wonder why this isn't caught by the benchmark check. This branch previously had a bad benchmark on |
@ensi321 the benchmark did not fail on the current version of |
spec tests passed, benchmark was confirmed in local env this branch
which is 10x faster than electra branch
e2e consistently failed but it's the common issue of electra branch, see #6986 (comment) |
1c73b3f
to
e35ff4a
Compare
12296dc
to
275f82e
Compare
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.
LGTM
🎉 This PR is included in v1.22.0 🎉 |
Motivation
@nflaig found that epoch transition is 10x slower as seen in
altair processEpoch - mainnet_e81889
benchmark. This is because we broke the optimization in #2902Description
beforeProcessEpoch()
processPendingConsolidations
processEffectiveBalanceUpdates()
: use the above to computeeffectiveBalanceLimit
to avoid unnecessary updatesnumEffectiveBalanceUpdates
metric