Skip to content
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

chore: clean up single-used functions in Electra #7132

Merged
merged 4 commits into from
Oct 12, 2024
Merged

Conversation

ensi321
Copy link
Contributor

@ensi321 ensi321 commented Oct 8, 2024

v1.5.0-alpha.7 includes several clean ups on the specs. Majority of them are removing definitions of single-used functions.

Remove:

  • getActiveBalance
  • queueEntireBalanceAndResetValidator
  • Duplicate logic of getMaxEffectiveBalance
  • upgradeStateToElectraOriginal

Waiting for alpha 7 feature PRs to be merged.

Copy link

codecov bot commented Oct 8, 2024

Codecov Report

Attention: Patch coverage is 21.42857% with 22 lines in your changes missing coverage. Please review.

Project coverage is 49.01%. Comparing base (4f3676a) to head (17ffdf7).
Report is 1 commits behind head on nc/devnet-4.

Additional details and impacted files
@@               Coverage Diff               @@
##           nc/devnet-4    #7132      +/-   ##
===============================================
- Coverage        49.11%   49.01%   -0.11%     
===============================================
  Files              598      596       -2     
  Lines            39879    39790      -89     
  Branches          2087     2059      -28     
===============================================
- Hits             19588    19502      -86     
+ Misses           20250    20247       -3     
  Partials            41       41              

Copy link
Member

@nflaig nflaig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

most of the changes here are duplicated in #7131

@ensi321
Copy link
Contributor Author

ensi321 commented Oct 10, 2024

most of the changes here are duplicated in #7131

Yes this branch is based on nc/delay-deposits. Waiting for it to be merged before marking this as ready for review

Ready for review now

@ensi321 ensi321 marked this pull request as ready for review October 11, 2024 07:58
@ensi321 ensi321 requested a review from a team as a code owner October 11, 2024 07:58
pubkey: validator.pubkey,
withdrawalCredentials: validator.withdrawalCredentials,
amount: balance,
signature: new Uint8Array(G2_POINT_AT_INFINITY),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this seems like an unnecessary conversion

we should probably convert everything to Uint8Array here as well
https://github.com/ChainSafe/lodestar/blob/unstable/packages/state-transition/src/constants/constants.ts#L1

@ensi321 ensi321 merged commit 1c84d36 into nc/devnet-4 Oct 12, 2024
15 of 17 checks passed
@ensi321 ensi321 deleted the nc/spec-cleanup branch October 12, 2024 05:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants