EIPs Explained

EIP-7872 · Review · Meta · 2025-01-30

EIP-7872: Max blob flag for local builders

Recommends that execution clients expose a setting capping how many blobs a locally built block will include, so low-bandwidth validators don't propose blocks whose blobs they can't propagate in time.

What problem does it solve?

Since EIP-4844, blocks can carry blobs, and the protocol maximum per block has been rising (for example via EIP-7691 and blob-parameter-only forks in EIP-7892). A validator building its own block locally will by default pack in every blob from its mempool, up to that protocol maximum.

For a home staker on a slow connection, that can backfire. The more blobs in the block, the more data it must push to the network within the slot. If the data does not spread fast enough, the network may not see the blobs as available, and the proposer risks losing the block.

EIP-7872 lets operators trade blob fees for reliability by choosing a lower ceiling.

How it works

It is a client configuration change only, on the execution layer, with no consensus impact:

  1. Add a builder setting USER_CONFIGURED_MAX_BLOBS_PER_BLOCK.
  2. When building a block, take the minimum of the protocol's maximum blobs per block and this setting.
  3. If that minimum is zero, use one instead (so the setting cannot fully disable blobs).
  4. Include at most that many blobs.

By default the setting may simply equal the current fork's maximum, so nothing changes unless the operator opts in. The setting applies only to the local builder; it does not constrain blocks obtained from external builders.

Sample code

Illustrative builder logic. The actual flag name and syntax are chosen by each client; check your client's documentation:

def max_blobs_for_local_block(protocol_max: int, user_max: int | None) -> int:
    # user_max comes from USER_CONFIGURED_MAX_BLOBS_PER_BLOCK
    limit = protocol_max if user_max is None else min(protocol_max, user_max)
    return max(limit, 1)            # spec: a zero limit is raised to one

def select_blobs(pending_blob_txs, protocol_max, user_max):
    budget = max_blobs_for_local_block(protocol_max, user_max)
    chosen, used = [], 0
    for tx in pending_blob_txs:     # assume sorted by fee
        n = len(tx.blob_versioned_hashes)
        if used + n <= budget:
            chosen.append(tx)
            used += n
    return chosen

Things to know

  • Status is Review. It is a Meta EIP describing a recommended client feature, not a protocol rule; support and flag names vary by client.
  • The spec text compares the setting with MAX_BLOB_GAS_PER_BLOCK, which is measured in blob gas rather than blobs. In practice the comparison is with the maximum blob count (blob gas divided by gas per blob).
  • Lowering the cap means forgoing some blob fees in exchange for better chances that your proposed block is accepted.
  • For guidance on what bandwidth a node should have, see EIP-7870.

#blobs #block-building #client-config #validators #meta

Details

Authors
Francesco D'Amato <[email protected]>, Kevaundray Wedderburn (@kevaundray), Toni Wahrstätter (@nerolation), Alex Stokes (@ralexstokes), Ben Adams (@benaadams), Gajinder Singh (@g11tech), Dustin (@tersec)
Status
Review
Type
Meta
Created
2025-01-30

Machine-readable: Markdown · JSON