From 73ede3a804fa37c19822330285e7dda2d82e222d Mon Sep 17 00:00:00 2001 From: Mikhail Kalinin Date: Wed, 27 Mar 2024 15:44:38 +0600 Subject: [PATCH] Fix pending_balance_to_withdraw == 0 check when full exit --- specs/_features/eip7251/beacon-chain.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/specs/_features/eip7251/beacon-chain.md b/specs/_features/eip7251/beacon-chain.md index 96b4b4c0b..c4aad0a6f 100644 --- a/specs/_features/eip7251/beacon-chain.md +++ b/specs/_features/eip7251/beacon-chain.md @@ -896,7 +896,10 @@ def process_execution_layer_withdraw_request( item.amount for item in state.pending_partial_withdrawals if item.index == index ) # only exit validator if it has no pending withdrawals in the queue - if is_full_exit_request and pending_balance_to_withdraw == 0: + if is_full_exit_request and pending_balance_to_withdraw > 0: + return + + if is_full_exit_request: initiate_validator_exit(state, index) elif state.balances[index] > MIN_ACTIVATION_BALANCE + pending_balance_to_withdraw: to_withdraw = min(