EIPs Explained

EIP-7975 · Last Call · Networking · 2025-06-16

EIP-7975: eth/70 - partial block receipt lists

eth/70 lets peers send a block's receipts across several messages, so receipt sync keeps working when big blocks push a receipt list past the 10 MiB message limit.

What problem does it solve?

When a node syncs history, it asks peers for block receipts with GetReceipts and gets them back in a Receipts message. Clients commonly reject any p2p message over 10 MiB, because they can only judge its validity after downloading it.

A single transaction's receipt is bounded: with EIP-7825 capping a transaction at about 16.7M gas, and logs costing at least 8 gas per byte, one transaction can emit at most about 2 MiB of log data. But a block holds many transactions. The spec estimates that around an 83M block gas limit, one block's receipts could exceed 10 MiB, and sync would simply fail.

How it works

eth/70 adds pagination to the two receipt messages defined in eth/69:

eth/69  GetReceipts (0x0f): [request-id, [blockhash₁, blockhash₂, ...]]
eth/70  GetReceipts (0x0f): [request-id, firstBlockReceiptIndex, [blockhash₁, ...]]

eth/69  Receipts (0x10):    [request-id, [[receipt₁, receipt₂], ...]]
eth/70  Receipts (0x10):    [request-id, lastBlockIncomplete, [[receipt₁, receipt₂], ...]]
  • firstBlockReceiptIndex tells the server to skip that many receipts of the first requested block, so a client can resume where it stopped.
  • lastBlockIncomplete = 1 means the last list in the response is cut short and the client must request the rest.

Because a partial list cannot be checked against the header's receipts root until it is complete, the client applies sanity checks to incomplete lists:

  • the number of delivered receipts must be checked against the block's transaction count,
  • each receipt must be no larger than its transaction's gas limit / 8,
  • the total downloaded size must fit what the block gas limit allows.

Sample code

Client-side loop for fetching one large block's receipts (pseudocode):

def fetch_block_receipts(peer, block_hash, tx_count):
    receipts = []
    while True:
        incomplete, lists = peer.request(
            "GetReceipts", first_block_receipt_index=len(receipts), hashes=[block_hash]
        )
        receipts += lists[0]
        if not incomplete:
            break
        sanity_check_partial(receipts, tx_count)   # count, per-tx size, total size
    verify_receipts_root(block_hash, receipts)      # full check once complete
    return receipts

Things to know

  • Status is Last Call (deadline 2026-11-01 per the spec header).
  • Networking only: no consensus change and no hard fork. Nodes can keep speaking eth/69 with older peers while eth/70 rolls out.
  • The pressure comes from rising gas limits, such as the 60M default in EIP-7935 and later increases.
  • A client may still need to buffer more than 10 MiB of not-yet-verified data for a single block; the sanity checks bound this, they don't eliminate it.

#networking #devp2p #eth-protocol #receipts #sync

Details

Authors
Felix Lange <[email protected]>, Jochem Brouwer (@jochem-brouwer), Giulio Rebuffo (@Giulio2002)
Status
Last Call
Type
Standards Track / Networking
Created
2025-06-16
Requires
Required by

Machine-readable: Markdown · JSON