feat: update weak subjectivity calculation for electra#7735
Merged
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## unstable #7735 +/- ##
=========================================
Coverage 56.09% 56.09%
=========================================
Files 823 823
Lines 58036 58075 +39
Branches 4464 4467 +3
=========================================
+ Hits 32554 32580 +26
- Misses 25415 25428 +13
Partials 67 67 🚀 New features to boost your workflow:
|
Contributor
Performance Report✔️ no performance regression detected Full benchmark results
|
nflaig
reviewed
Apr 22, 2025
nflaig
left a comment
Member
There was a problem hiding this comment.
just for reference, this ethereum/consensus-specs#4179 is the actual PR
|
|
||
| export function computeWeakSubjectivityPeriodFromConstituentsElectra( | ||
| totalBalanceByIncrement: number, | ||
| balanceChurnLimit: number, // Note this is not the same as churnLimit in `computeWeakSubjectivityPeriodFromConstituentsPhase0` |
Member
There was a problem hiding this comment.
the function signature is really not ideal, it would be better to get it closer to how the spec works but I can see why we do it like this as well
Member
|
could merge this as is |
Member
|
🎉 This PR is included in v1.31.0 🎉 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related spec
ethereum/consensus-specs#4243ethereum/consensus-specs#4179Closes #7645