---
eip: 7922
label: EIP-7922
title: Dynamic exit queue rate limit
status: Stagnant
type: Standards Track
category: Core
created: 2025-03-24
official: https://eips.ethereum.org/EIPS/eip-7922
source: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-7922.md
canonical: https://eips.huatuo.xyz/eip-7922/
lang: en
tldr: "Lets the validator exit queue borrow unused exit capacity from recent ~27-hour \"generations\", so bursts of exits clear faster while the total exited stake over a rolling window stays bounded."
tags: [consensus, staking, validators, exits, churn]
---

# EIP-7922: Dynamic exit queue rate limit

> Update the validator exit process by dynamically adjusting the churn limit based on historical validator exits.

**TL;DR:** Lets the validator exit queue borrow unused exit capacity from recent ~27-hour "generations", so bursts of exits clear faster while the total exited stake over a rolling window stays bounded.

## What problem does it solve?

Ethereum rate-limits validator exits. If stake could leave instantly, an attacker could finalize conflicting blocks and walk away before being slashed. The limit (the "churn") is a fixed amount per epoch, derived so that roughly 10 % of stake can exit in about a month.

A fixed per-epoch limit is stricter than the security goal really needs. Suppose nobody exited for two weeks and then a large operator wants to leave: the rolling two-week budget is untouched, yet they still queue at the per-epoch rate for days. Exit queues get long exactly when demand spikes (liquidations, market events), even if the network had been far below capacity.

The key idea of EIP-7922: **look backward at how much churn was actually used, instead of capping every epoch looking forward.**

## How it works

- Time is grouped into **generations** of 256 epochs (about 27 hours).
- A new state field, `exit_churn_vector`, stores the ETH exited in each of the last 16 generations.
- `get_exit_churn_limit` starts from today's per-epoch exit churn (total active stake / 2^16, capped by the existing activation/exit limit, see [EIP-7251](/eip-7251/)). It then adds up the *unused* capacity of past generations and lets exits use that slack.
- The resulting per-epoch limit is bounded by `EXIT_CHURN_SLACK_MULTIPLIER = 8` times the normal per-epoch churn.
- Slack is only used when the exit queue's earliest exit epoch is within a short lookahead (2 generations); a queue that is already far into the future falls back to the normal rate.
- `compute_exit_epoch_and_update_churn` is modified to use the new limit and record consumed churn in the vector.
- At activation, past generations are marked fully used (their history is unknown), so the extra capacity builds up gradually.

| Preset | Value |
| --- | --- |
| `EPOCHS_PER_CHURN_GENERATION` | 256 |
| `GENERATIONS_PER_EXIT_CHURN_VECTOR` | 16 |
| `GENERATIONS_PER_EXIT_CHURN_LOOKAHEAD` | 2 |
| `EXIT_CHURN_SLACK_MULTIPLIER` | 8 |

## Sample code

Simplified version of the new limit (consensus-spec style Python):

```python
def get_exit_churn_limit(state) -> Gwei:
    per_epoch = get_activation_exit_churn_limit(state)
    per_generation = per_epoch * EPOCHS_PER_CHURN_GENERATION

    current_gen = get_current_epoch(state) // EPOCHS_PER_CHURN_GENERATION
    past = GENERATIONS_PER_EXIT_CHURN_VECTOR - GENERATIONS_PER_EXIT_CHURN_LOOKAHEAD
    oldest_gen = current_gen - past if current_gen > past else 0

    unused = 0
    for gen in range(oldest_gen, current_gen):
        used = state.exit_churn_vector[gen % GENERATIONS_PER_EXIT_CHURN_VECTOR]
        if used < per_generation:
            unused += per_generation - used

    # bounded so a single epoch never exceeds 8x the normal churn
    return min(per_epoch + unused, per_epoch * EXIT_CHURN_SLACK_MULTIPLIER)
```

## Things to know

- **Status: Stagnant.** It has not been scheduled for any network upgrade and would require a consensus-layer hard fork.
- The draft text has loose ends: it mixes 14 and 16 generations, uses two names for the churn vector, and its `get_exit_churn_limit` code returns `max(...)` where the prose describes a cap. The sample above follows the described intent (a cap of 8×).
- Security relies on bounding total exits over a rolling window rather than per epoch; the 8× cap limits how fast that budget can be spent.
- It only changes exits. Deposits/activations are unaffected; execution-triggered exits from [EIP-7002](/eip-7002/) would flow through the same queue.


---

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