This commit is contained in:
dapplion 2024-03-22 15:28:44 +09:00
parent 72c4f04261
commit 08732e69c6

View File

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