EIP-8254 · Draft · Core · 2026-05-06
EIP-8254: Cap Deposit Requests Per Block
Proposes a consensus rule capping an execution-layer block at 8,192 validator deposit requests, matching the consensus layer's decoding limit so high gas limits cannot be used to produce blocks proposers are unable to publish.
What problem does it solve?
Since EIP-6110, validator deposits are read directly from deposit-contract logs in each execution block and passed to the consensus layer as deposit requests. The consensus layer can decode at most MAX_DEPOSIT_REQUESTS_PER_PAYLOAD = 8192 of them per payload, an SSZ list bound. The execution layer, however, has no matching limit.
At today's typical gas limits this does not matter. But the authors observed that at roughly 193–200M gas, a batching contract can pack more than 8,192 deposits into one block. The execution client happily builds that payload, the beacon node fails to decode it, and the proposer misses the slot. Later proposals on the same head fail the same way until the backlog drains, so an attacker willing to pay could stall the chain. Relying on builders to under-fill blocks does not help, because an attacker can also trigger fallback to local block production.
How it works
- New constant
MAX_DEPOSIT_REQUESTS_PER_BLOCK = 8192, equal to the existing consensus-layer bound. - Validation: from the fork block on, a block whose receipts yield more than 8,192 deposit requests is invalid, like any other consensus-rule violation. The count is the number of
DepositEventlogs from the deposit contract, equivalently the EIP-6110 request data length divided by 192 bytes. - Construction: execution clients must track a running deposit count while assembling a block and skip any transaction that would push it over the cap. Other transactions can still be added, and skipped deposit transactions remain eligible for later blocks. This applies to every build path, including local fallback; enforcement must not be left to external builders.
- Engine API:
engine_getPayloadmust never return a violating payload, andengine_newPayloadmust report one asINVALID. - Consensus layer: no changes.
Sample code
The reference check, from the spec:
MAX_DEPOSIT_REQUESTS_PER_BLOCK = 8192
def validate_deposit_requests_count(block) -> None:
deposit_requests = get_deposit_request_data(block.receipts) # EIP-6110
count = len(deposit_requests) // 192 # 48+32+8+96+8 bytes per request
assert count <= MAX_DEPOSIT_REQUESTS_PER_BLOCK, "too many deposit requests"
def can_include_transaction(running_count: int, tx_deposit_request_count: int) -> bool:
return running_count + tx_deposit_request_count <= MAX_DEPOSIT_REQUESTS_PER_BLOCK
Things to know
- Status: Draft. It is a hard fork and needs coordinated client upgrades; no activation is scheduled in the spec.
- At current mainnet gas limits the cap cannot be reached by normal use. EIP-6110's analysis puts a 30M-gas block at about 1,271 deposits, and it changes no historical block.
- The authors chose a count-based cap rather than raising the SSZ bound, because consensus-layer cost scales with signature checks per deposit and raising the bound would only move the problem to the next gas-limit increase.
- Builders now face a second packing constraint (gas and deposit count), which makes optimal block building harder. The spec accepts this, noting that filling the cap requires at least 8,192 minimum-size deposits.
- Deposits held back by the cap are not lost; they are included in later blocks.