tighten conditional logic for withdrawal requests: list len cannot be greater than its bound

This commit is contained in:
Alex Stokes 2024-04-15 11:31:36 -06:00
parent d243afab25
commit 4d212b4263
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -1097,7 +1097,7 @@ def process_execution_layer_withdrawal_request(
is_full_exit_request = amount == FULL_EXIT_REQUEST_AMOUNT is_full_exit_request = amount == FULL_EXIT_REQUEST_AMOUNT
# If partial withdrawal queue is full, only full exits are processed # If partial withdrawal queue is full, only full exits are processed
if len(state.pending_partial_withdrawals) >= PENDING_PARTIAL_WITHDRAWALS_LIMIT and not is_full_exit_request: if len(state.pending_partial_withdrawals) == PENDING_PARTIAL_WITHDRAWALS_LIMIT and not is_full_exit_request:
return return
validator_pubkeys = [v.pubkey for v in state.validators] validator_pubkeys = [v.pubkey for v in state.validators]