---
eip: 6914
label: EIP-6914
title: Reuse Withdrawn Validator Indices
status: Stagnant
type: Standards Track
category: Core
created: 2023-04-19
official: https://eips.ethereum.org/EIPS/eip-6914
source: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-6914.md
canonical: https://eips.huatuo.xyz/eip-6914/
lang: en
tldr: "A stagnant consensus-layer proposal to let new validators reuse the index of a long-withdrawn validator, so the beacon state's validator and balance lists stop growing forever."
tags: [consensus, beacon-chain, validators, state-growth]
---

# EIP-6914: Reuse Withdrawn Validator Indices

> Reuse fully withdrawn and safe to reuse validator indices for new beacon chain deposits.

**TL;DR:** A stagnant consensus-layer proposal to let new validators reuse the index of a long-withdrawn validator, so the beacon state's validator and balance lists stop growing forever.

## What problem does it solve?

The beacon chain keeps two parallel lists in its state: `validators` and `balances`. A deposit for a new public key always **appends** a new entry; a validator that exits and fully withdraws keeps its slot forever. As stakers come and go over years, both lists grow without bound, even though many entries belong to validators with nothing left.

Bigger lists mean more client memory, slower state-root computation and longer validator-set scans. EIP-6914 proposes a simple clean-up: once it is safe, give a dead validator's index to a new one.

## How it works

- When a new deposit arrives, the state transition looks for a validator index that is **fully withdrawn** and has been **withdrawable for at least `SAFE_EPOCHS_TO_REUSE_INDEX` epochs**.
- If one exists, the new validator's record and balance overwrite that index instead of being appended.
- The detailed constants and functions are in the consensus-specs feature folder for EIP-6914, not in the EIP text.
- The execution layer is not affected.

**Why the waiting period?** Slashing evidence (`AttesterSlashing`) identifies signers by validator **index**, not by public key. If an index is reused too soon, its old public key is overwritten in the state. An attacker controlling about a third of stake could exit some validators, let their indices be reused, then build an alternative chain where those validators never exited and mix their keys into double-signed aggregate attestations. On the honest chain those indices now map to different keys, so the slashing evidence cannot be verified, which breaks accountable safety.

Waiting `SAFE_EPOCHS_TO_REUSE_INDEX` (set to three times the maximum weak subjectivity period) means any such attestation falls outside the window in which accountable safety must hold.

## Sample code

Simplified pseudocode of index selection on deposit (illustrative; see consensus-specs for the exact functions):

```python
def is_reusable_validator(validator, balance, epoch) -> bool:
    return (
        epoch > validator.withdrawable_epoch + SAFE_EPOCHS_TO_REUSE_INDEX
        and balance == 0
    )

def get_index_for_new_validator(state) -> int:
    epoch = get_current_epoch(state)
    for index, validator in enumerate(state.validators):
        if is_reusable_validator(validator, state.balances[index], epoch):
            return index
    return len(state.validators)  # nothing reusable: append

def add_validator_to_registry(state, pubkey, withdrawal_credentials, amount):
    index = get_index_for_new_validator(state)
    validator = get_validator_from_deposit(pubkey, withdrawal_credentials, amount)
    if index == len(state.validators):
        state.validators.append(validator)
        state.balances.append(amount)
    else:
        state.validators[index] = validator
        state.balances[index] = amount
```

## Things to know

- Status is **Stagnant**: it has not been scheduled for any hard fork. It would be a backwards-incompatible consensus change requiring one.
- Tools that treat a validator index as a permanent identity (explorers, staking dashboards, reward trackers) would need to key on public key plus time range instead.
- An alternative fix, putting public keys instead of indices into `AttesterSlashing`, would avoid the attack but makes the largest consensus message several times bigger.
- Related validator lifecycle changes: [EIP-4895](/eip-4895/) (withdrawals), [EIP-7002](/eip-7002/) (execution-layer exits), [EIP-6110](/eip-6110/) (on-chain deposits) and [EIP-7251](/eip-7251/) (higher max effective balance, which reduces validator count).


---

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