---
eip: 8071
label: EIP-8071
title: Prevent using consolidations as withdrawals
status: Draft
type: Standards Track
category: Core
created: 2025-10-29
official: https://eips.ethereum.org/EIPS/eip-8071
source: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-8071.md
canonical: https://eips.huatuo.xyz/eip-8071/
lang: en
tldr: 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.
tags: [consensus, staking, consolidation, withdrawals, pectra]
---

# EIP-8071: Prevent using consolidations as withdrawals

> Cancels consolidation if the max effective balance of the target validator will be exceeded, preventing the withdrawal of the unused balance

**TL;DR:** 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](/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:

```python
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](/eip-7002/)).


---

This is an unofficial plain-language summary. Read the full specification: https://eips.ethereum.org/EIPS/eip-8071
