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

fix: update valid voluntary exit check when building block #7376

Draft
wants to merge 2 commits into
base: nflaig/fix-pending-partial-withdrawals
Choose a base branch
from

Conversation

nflaig
Copy link
Member

@nflaig nflaig commented Jan 19, 2025

Fixes another issue, we might build a block with a invalid voluntary exit since we haven't updated the check when building the block, only in state transition.

@@ -53,7 +53,7 @@ export {
} from "./cache/effectiveBalanceIncrements.js";

// BeaconChain validation
export {isValidVoluntaryExit} from "./block/processVoluntaryExit.js";
export {isValidVoluntaryExit, isValidVoluntaryExitElectra} from "./block/processVoluntaryExit.js";
Copy link
Member Author

Choose a reason for hiding this comment

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

those should probably just be a single function with the fork check handled inside the function

Copy link

codecov bot commented Jan 19, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 48.62%. Comparing base (6658d29) to head (2fe2563).

Additional details and impacted files
@@                           Coverage Diff                           @@
##           nflaig/fix-pending-partial-withdrawals    #7376   +/-   ##
=======================================================================
  Coverage                                   48.62%   48.62%           
=======================================================================
  Files                                         603      603           
  Lines                                       40517    40517           
  Branches                                     2071     2071           
=======================================================================
+ Hits                                        19700    19701    +1     
+ Misses                                      20779    20778    -1     
  Partials                                       38       38           

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.

1 participant