EIPs Explained

EIP-7782 · Draft · Core · 2024-10-05

EIP-7782: Reduce Block Latency

Proposes cutting Ethereum's slot time from 12 to 6 seconds, halving confirmation latency and epoch length while halving per-block gas and blob limits.

What problem does it solve?

Every Ethereum block arrives on a 12-second slot. That sets the floor for how fast a transaction gets its first confirmation, how quickly rollups can settle, and, with 32 slots per epoch, how long finality takes.

Raising throughput by making blocks bigger runs into networking limits; the authors note it is impractical to go much beyond about 10 MiB blocks without major networking changes. EIP-7782 instead makes blocks come twice as often and keeps their sizes in proportion, spreading bandwidth use more evenly over time.

How it works

  • Slot schedule. The consensus layer gets a SLOT_SCHEDULE config that switches SECONDS_PER_SLOT from 12 to 6 at a fork epoch. Epochs shrink from 384 s to 192 s.
  • Gas and blob limits halved. Gas limit settings are reinterpreted as "gas per 12 seconds". The first block after the fork uses half the previous gas limit, and a client configured to vote for 36,000,000 votes for 18,000,000 instead. Blob target and maximum are also halved (rounded down). Throughput per unit of time is roughly unchanged; it just arrives in smaller, more frequent pieces.
  • New intra-slot deadlines. Instead of three equal thirds, the 6-second slot uses an uneven schedule to give block propagation more time: proposal at 0 ms, attestations at 3000 ms, aggregates at 4500 ms. Clients must support millisecond-precision deadlines.

The authors list expected benefits: faster user confirmations, faster finality, shorter settlement delays for L2s (especially based rollups, whose sequencing follows L1 blocks), and lower loss-versus-rebalancing for DEX liquidity providers.

Sample code

The config shape from the spec (epoch values are explicitly illustrative):

SLOT_SCHEDULE:
  - EPOCH: 348618
    SECONDS_PER_SLOT: 12
  - EPOCH: 355368
    SECONDS_PER_SLOT: 6

Code that converts block counts to wall-clock time should read the slot length rather than hard-code 12:

// Before: const secondsAgo = blocksAgo * 12;
const SECONDS_PER_SLOT = await getSecondsPerSlot(); // from beacon API /eth/v1/config/spec
const secondsAgo = blocksAgo * SECONDS_PER_SLOT;

Things to know

  • Status: Draft. It is not scheduled for any network upgrade, and the fork epochs above are placeholders.
  • It requires EIP-7623 (higher calldata cost) and EIP-7778 (block gas accounting without refunds), which bound worst-case block sizes.
  • Contracts and off-chain code that assume 12-second blocks (for example "blocks per day" constants, or timeouts in block numbers) would run at a different real-time rate. Prefer block.timestamp for time-based logic.
  • The security section flags network congestion from more frequent messages and the need to re-check fork-choice and finality behaviour under the new timing.

#consensus #slot-time #latency #finality #core

Details

Authors
Ben Adams (@benaadams), Dankrad Feist (@dankrad), Maria Inês Silva (@misilva73), Paul Harris (@rolfyone)
Status
Draft
Type
Standards Track / Core
Created
2024-10-05
Requires

Machine-readable: Markdown · JSON