From 4d212b4263a786428b2e289ac400230e399ae1a8 Mon Sep 17 00:00:00 2001 From: Alex Stokes Date: Mon, 15 Apr 2024 11:31:36 -0600 Subject: [PATCH] tighten conditional logic for withdrawal requests: list len cannot be greater than its bound --- specs/electra/beacon-chain.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specs/electra/beacon-chain.md b/specs/electra/beacon-chain.md index d56d1057c..4329192ba 100644 --- a/specs/electra/beacon-chain.md +++ b/specs/electra/beacon-chain.md @@ -1097,7 +1097,7 @@ def process_execution_layer_withdrawal_request( is_full_exit_request = amount == FULL_EXIT_REQUEST_AMOUNT # 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 validator_pubkeys = [v.pubkey for v in state.validators]