Skip to content

Commit

Permalink
Fix isFullExitRequest return (Consensys#8709)
Browse files Browse the repository at this point in the history
Co-authored-by: Paul Harris <[email protected]>
  • Loading branch information
2 people authored and tbenr committed Oct 14, 2024
1 parent 542ebf2 commit 0c0ba93
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -322,8 +322,8 @@ public void processWithdrawalRequests(

beaconStateMutators.initiateValidatorExit(
state, validatorIndex, validatorExitContextSupplier);
return;
}
return;
}

final UInt64 validatorBalance = state.getBalances().get(validatorIndex).get();
Expand Down

0 comments on commit 0c0ba93

Please sign in to comment.