EIPs Explained

EIP-8071 · Draft · Core · 2025-10-29

EIP-8071: Prevent using consolidations as withdrawals

Cancels validator consolidation requests that would push the target over its maximum effective balance, closing a loophole that let stakers use the consolidation queue as a faster exit queue.

What problem does it solve?

EIP-7251 (Pectra) raised the maximum effective balance to 2048 ETH and added consolidation: a validator can merge its stake into another validator with compounding credentials. The source validator exits through a consolidation queue, and its balance is moved to the target.

The flaw: if the target ends up above its maximum effective balance, the excess is simply withdrawn. So when the consolidation queue was moving faster than the regular exit queue, stakers could "consolidate" into a nearly full validator and get their ETH out sooner than by exiting normally. The spec states this was being heavily exploited at the time of writing, with public write-ups describing the method. It is framed as a UX and fairness issue rather than a security bug: the consolidation queue was never meant for withdrawals.

How it works

The consensus-layer process_consolidation_request gets one extra check. Before accepting a request it computes:

target balance after = pending consolidations already queued for the target
                     + source effective balance
                     + target's current balance

If that exceeds the target's maximum effective balance, the request is silently ignored, like other invalid consolidation requests.

A new helper, get_pending_balance_to_consolidate, sums the effective balances of all sources already queued for the same target. This catches the case where several requests are individually fine but together overflow the target.

Sample code

The new helper and the added check, from the spec:

def get_pending_balance_to_consolidate(state: BeaconState, target_index: ValidatorIndex) -> Gwei:
    total = Gwei(0)
    for pc in state.pending_consolidations:
        if pc.target_index == target_index:
            total += state.validators[pc.source_index].effective_balance
    return total

# inside process_consolidation_request, after the existing checks:
target_balance_after_consolidation = (
    get_pending_balance_to_consolidate(state, target_index)
    + source_validator.effective_balance
    + state.balances[target_index]
)
if target_balance_after_consolidation > get_max_effective_balance(target_validator):
    return  # cancelled: excess would otherwise be withdrawn

Things to know

  • Status: Draft. It is a consensus change that needs a scheduled network upgrade.
  • A cancelled request is dropped on the consensus layer, but the execution-layer request fee and gas are not refunded. Check the target's headroom before submitting.
  • The check uses the target's actual balance, not just its effective balance, so rewards accumulated on the target count against the limit.
  • Self-consolidation to switch to compounding credentials is unaffected.
  • To exit, use the normal exit queue or execution-layer triggered exits (EIP-7002).

#consensus #staking #consolidation #withdrawals #pectra

Details

Authors
Mikhail Kalinin (@mkalinin), Francesco D'Amato (@fradamt)
Status
Draft
Type
Standards Track / Core
Created
2025-10-29

Machine-readable: Markdown · JSON