Skip to content

Conversation

@shane-moore
Copy link

@shane-moore shane-moore commented Oct 27, 2025

Changes per spec

  • modified get_pending_balance_to_withdraw

How this works

There are a couple places in the codebase where we want to verify that a validator has no pending balances to withdraw before allowing them to initiate an exit or consolidation. Pre-gloas, we were calling get_pending_balance_to_withdraw to check whether their BeaconState.pending_partial_withdrawals was empty and if so, let them proceed. Since gloas introduces BeaconState.builder_pending_payments and BeaconState.builder_pending_withdrawals, we now have to account for these pending validator balances as well before letting them proceed with an exit or consolidation.

@ethDreamer
@eserilev

@shane-moore shane-moore changed the title modify get_pending_balance_to_withdraw per gloas spec Gloas modify get_pending_balance_to_withdraw per gloas spec Oct 27, 2025
@shane-moore shane-moore changed the title Gloas modify get_pending_balance_to_withdraw per gloas spec Gloas modify get_pending_balance_to_withdraw Oct 27, 2025
Copy link
Member

@ethDreamer ethDreamer left a comment

Choose a reason for hiding this comment

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

LGTM!

@ethDreamer ethDreamer merged commit 150b117 into sigp:gloas-envelope-processing Oct 31, 2025
20 of 25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants