EIPs Explained

EIP-7675 · Withdrawn · Meta · 2024-04-04

EIP-7675: Retroactively Included EIPs

A (now withdrawn) Meta EIP that listed backward-compatible consensus rules treated as active since genesis, without needing a hard fork.

What problem does it solve?

Most consensus changes break compatibility, so every node must switch at the same moment. That is why they are bundled into hard forks, each with a Meta EIP listing what goes in and when it activates.

Some rule changes are different. If a rule was underspecified (for example, "how big can a nonce get?") and a new constraint was never broken in Ethereum's history and is unlikely ever to be, then nodes that enforce it and nodes that do not will still agree on every block. Such a change can be "retroactively activated": it is simply declared part of the protocol from genesis. Without a central list, though, these quiet rules are easy to miss when someone builds a new client or reads the spec.

EIP-7675 was meant to be that list.

How it works

The EIP is purely a registry. It names five Core EIPs and says they are considered active as of the genesis block:

EIP What it constrains
EIP-2681 Account nonce is capped at 2^64-1
EIP-3607 Transactions from senders that have deployed code are rejected
EIP-4803 Transaction gas limit is capped at 2^63-1
EIP-7523 Empty accounts are deprecated (with distinct pre- and post-Merge behaviour on mainnet)
EIP-7610 Contract creation reverts if the target address already has non-empty storage

No fork block, no timestamp, no new opcodes. Clients implementing these rules are expected to behave identically on all historical and future blocks to clients that do not, except in edge cases that have never occurred.

Sample code

A meta EIP has nothing to call, but the idea maps naturally to a client configuration where these rules are "on from block 0" rather than gated on a fork:

# Illustrative only: rules enabled unconditionally, not tied to a fork
retroactive_rules:
  - eip: 2681   # nonce <= 2**64 - 1
    active_from: genesis
  - eip: 3607   # reject txs whose sender has code
    active_from: genesis
  - eip: 4803   # tx gas limit <= 2**63 - 1
    active_from: genesis
  - eip: 7523   # empty accounts deprecated
    active_from: genesis
  - eip: 7610   # revert CREATE on non-empty storage
    active_from: genesis

And the kind of check such a rule adds, in pseudocode:

def validate_tx(tx, state):
    assert tx.nonce < 2**64 - 1          # EIP-2681
    assert tx.gas_limit <= 2**63 - 1      # EIP-4803
    assert state.get_code(tx.sender) == b""  # EIP-3607

Things to know

  • Status: Withdrawn. The stated reason is that it is "a list of EIPs that will never move to Final", which does not fit the EIP lifecycle. The individual EIPs it listed are tracked on their own.
  • Retroactive activation only works when the new rule never conflicted with past chain history. Any change that could alter the outcome of an existing block still needs a coordinated hard fork.
  • When reading a client's source, you may find these checks applied unconditionally rather than behind a fork flag; that is the reason.
  • Check each listed EIP's own page for its current status; some are Final and others are still in Last Call or Stagnant.

#meta #process #consensus #core

Details

Authors
Tim Beiko (@timbeiko)
Status
Withdrawn
Type
Meta
Created
2024-04-04
Requires

Machine-readable: Markdown · JSON