From 2157bbed6880f57f33f3968d89fd7751f64c88ad Mon Sep 17 00:00:00 2001 From: Justin Traglia Date: Thu, 10 Oct 2024 16:43:03 -0500 Subject: [PATCH] Fix isFullExitRequest return --- .../logic/versions/electra/block/BlockProcessorElectra.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ethereum/spec/src/main/java/tech/pegasys/teku/spec/logic/versions/electra/block/BlockProcessorElectra.java b/ethereum/spec/src/main/java/tech/pegasys/teku/spec/logic/versions/electra/block/BlockProcessorElectra.java index ed5a8a7b684..66d64a73275 100644 --- a/ethereum/spec/src/main/java/tech/pegasys/teku/spec/logic/versions/electra/block/BlockProcessorElectra.java +++ b/ethereum/spec/src/main/java/tech/pegasys/teku/spec/logic/versions/electra/block/BlockProcessorElectra.java @@ -241,7 +241,7 @@ public void processWithdrawalRequests( withdrawalRequest.getAmount().equals(FULL_EXIT_REQUEST_AMOUNT); final boolean partialWithdrawalsQueueFull = state.toVersionElectra().orElseThrow().getPendingPartialWithdrawals().size() - >= specConfigElectra.getPendingPartialWithdrawalsLimit(); + == specConfigElectra.getPendingPartialWithdrawalsLimit(); if (partialWithdrawalsQueueFull && !isFullExitRequest) { LOG.debug("process_withdrawal_request: partial withdrawal queue is full"); return; @@ -322,8 +322,8 @@ public void processWithdrawalRequests( beaconStateMutators.initiateValidatorExit( state, validatorIndex, validatorExitContextSupplier); - return; } + return; } final UInt64 validatorBalance = state.getBalances().get(validatorIndex).get();