fix: improve processEffectiveBalanceUpdates#7043
fix: improve processEffectiveBalanceUpdates#7043wemeetagain merged 1 commit intoelectra-fork-rebasejul30from
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
|
🎉 This PR is included in v1.22.0 🎉 |
Motivation
@nflaig found that epoch transition is 10x slower as seen in
altair processEpoch - mainnet_e81889benchmark. This is because we broke the optimization in #2902Description
beforeProcessEpoch()processPendingConsolidationsprocessEffectiveBalanceUpdates(): use the above to computeeffectiveBalanceLimitto avoid unnecessary updatesnumEffectiveBalanceUpdatesmetric