EIPs Explained

EIP-7514 · Final · Core · 2023-09-07

EIP-7514: Add Max Epoch Churn Limit

Capped how many new validators can activate per epoch at 8, turning the stake's growth rate from exponential to linear and buying time to rethink staking economics.

What problem does it solve?

On the Beacon Chain, only a limited number of validators may enter (activate) or leave (exit) per epoch. This churn limit was a fraction of the active set: max(4, active_validators // 65536). Because the limit grew with the set, a permanently full deposit queue meant the validator count grew exponentially.

In 2023 the queue was indeed full, and projections in the spec showed the share of all ETH staked could reach 50 % by May 2024 and 100 % by December 2024. More validators mean more gossip messages, a larger Beacon state and more load on nodes, while the marginal security gain is unclear. Changing the reward curve properly would take long research and debate.

EIP-7514 is a deliberately small stopgap: slow the inflow now, so there is time to discuss a real fix.

How it works

  • A new constant MAX_PER_EPOCH_ACTIVATION_CHURN_LIMIT = 8.
  • A new helper, get_validator_activation_churn_limit, returns the normal churn limit capped at 8.
  • process_registry_updates uses the capped value when moving validators out of the activation queue.
  • Exits still use the original, uncapped churn limit.
  • No execution-layer changes. It is a consensus-layer change that needs a hard fork.

With at most 8 activations per epoch (225 epochs per day), the validator set can grow by at most 1,800 validators a day: linear rather than exponential growth. At the time, the churn was around 14 to 16, so the cap reduced it. The authors chose 8 so that, on their projections, 50 % of ETH would not be staked for at least a year after activation.

Sample code

The consensus-spec change (Python, Deneb):

MAX_PER_EPOCH_ACTIVATION_CHURN_LIMIT = uint64(8)

def get_validator_activation_churn_limit(state: BeaconState) -> uint64:
    """Per-epoch churn limit for activations, capped by EIP-7514."""
    return min(MAX_PER_EPOCH_ACTIVATION_CHURN_LIMIT, get_validator_churn_limit(state))

def process_registry_updates(state: BeaconState) -> None:
    ...
    activation_queue = sorted(...)
    # Dequeue validators for activation up to the *activation* churn limit
    for index in activation_queue[:get_validator_activation_churn_limit(state)]:
        validator = state.validators[index]
        validator.activation_epoch = compute_activation_exit_epoch(get_current_epoch(state))

Things to know

  • Status is Final. It shipped in the Dencun upgrade (Deneb on the consensus side) alongside EIP-4844, EIP-7044 and EIP-7045.
  • It breaks the symmetry between entry and exit queues: entering is capped, exiting is not.
  • It does not change rewards; it only slows growth. The question of whether to change issuance was left open on purpose.
  • Pectra's EIP-7251 later reworked churn to be measured in ETH balance rather than validator count, since validators can now hold more than 32 ETH.

#consensus #staking #validators #dencun

Details

Authors
dapplion (@dapplion), Tim Beiko (@timbeiko)
Status
Final
Type
Standards Track / Core
Created
2023-09-07
Required by

Machine-readable: Markdown · JSON