{"eip":7975,"title":"eth/70 - partial block receipt lists","description":"Adds a facility for paginating block receipts in the p2p protocol","authors":["Felix Lange \u003cfjl@ethereum.org\u003e","Jochem Brouwer (@jochem-brouwer)","Giulio Rebuffo (@Giulio2002)"],"status":"Last Call","type":"Standards Track","category":"Networking","created":"2025-06-16","requires":[7642,7825],"discussionsTo":"https://ethereum-magicians.org/t/eip-7975-eth-70-partial-block-receipt-lists/24658","repo":"EIPs","label":"EIP-7975","officialUrl":"https://eips.ethereum.org/EIPS/eip-7975","sourceUrl":"https://github.com/ethereum/EIPs/blob/master/EIPS/eip-7975.md","url":"https://eips.huatuo.xyz/eip-7975/","tldr":{"en":"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.","ja":"eth/70 では、ピアがブロックのレシートを複数のメッセージに分けて送れるようになり、巨大なブロックでレシート一覧が 10 MiB のメッセージ上限を超えても、レシートの同期が止まらない。","ko":"eth/70은 피어가 블록의 영수증을 여러 메시지로 나눠 보낼 수 있게 해서, 큰 블록 때문에 영수증 목록이 10 MiB 메시지 한도를 넘어도 영수증 동기화가 계속 동작하게 한다.","zh":"eth/70 允许节点把一个区块的收据拆成多条消息发送，这样当大区块使收据列表超过 10 MiB 的消息上限时，收据同步依然可以继续。"},"tags":["networking","devp2p","eth-protocol","receipts","sync"],"explainers":{"en":{"lang":"en","tldr":"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.","tags":["networking","devp2p","eth-protocol","receipts","sync"],"related":[7642,7825,7935],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-7975/","markdown":"## What problem does it solve?\n\nWhen 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.\n\nA single transaction's receipt is bounded: with [EIP-7825](/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.\n\n## How it works\n\neth/70 adds pagination to the two receipt messages defined in [eth/69](/eip-7642/):\n\n```text\neth/69  GetReceipts (0x0f): [request-id, [blockhash₁, blockhash₂, ...]]\neth/70  GetReceipts (0x0f): [request-id, firstBlockReceiptIndex, [blockhash₁, ...]]\n\neth/69  Receipts (0x10):    [request-id, [[receipt₁, receipt₂], ...]]\neth/70  Receipts (0x10):    [request-id, lastBlockIncomplete, [[receipt₁, receipt₂], ...]]\n```\n\n- `firstBlockReceiptIndex` tells the server to skip that many receipts of the **first** requested block, so a client can resume where it stopped.\n- `lastBlockIncomplete = 1` means the last list in the response is cut short and the client must request the rest.\n\nBecause a partial list cannot be checked against the header's receipts root until it is complete, the client applies sanity checks to incomplete lists:\n\n- the number of delivered receipts must be checked against the block's transaction count,\n- each receipt must be no larger than its transaction's gas limit / 8,\n- the total downloaded size must fit what the block gas limit allows.\n\n## Sample code\n\nClient-side loop for fetching one large block's receipts (pseudocode):\n\n```python\ndef fetch_block_receipts(peer, block_hash, tx_count):\n    receipts = []\n    while True:\n        incomplete, lists = peer.request(\n            \"GetReceipts\", first_block_receipt_index=len(receipts), hashes=[block_hash]\n        )\n        receipts += lists[0]\n        if not incomplete:\n            break\n        sanity_check_partial(receipts, tx_count)   # count, per-tx size, total size\n    verify_receipts_root(block_hash, receipts)      # full check once complete\n    return receipts\n```\n\n## Things to know\n\n- Status is **Last Call** (deadline 2026-11-01 per the spec header).\n- Networking only: no consensus change and no hard fork. Nodes can keep speaking eth/69 with older peers while eth/70 rolls out.\n- The pressure comes from rising gas limits, such as the 60M default in [EIP-7935](/eip-7935/) and later increases.\n- 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.\n"},"ja":{"lang":"ja","tldr":"eth/70 では、ピアがブロックのレシートを複数のメッセージに分けて送れるようになり、巨大なブロックでレシート一覧が 10 MiB のメッセージ上限を超えても、レシートの同期が止まらない。","tags":["networking","devp2p","eth-protocol","receipts","sync"],"related":[7642,7825,7935],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-7975/","markdown":"## 何を解決するのか\n\nノードが履歴を同期するとき、ピアに `GetReceipts` でブロックのレシートを要求し、`Receipts` メッセージで受け取ります。クライアントは通常、**10 MiB** を超える p2p メッセージを拒否します。メッセージの正当性はダウンロードし終えてからでないと判断できないためです。\n\n1 件のトランザクションのレシートには上限があります。[EIP-7825](/eip-7825/) がトランザクション 1 件を約 1,670 万 gas に制限し、ログのコストは 1 バイトあたり最低 8 gas なので、1 件のトランザクションが出力できるログデータは最大でも約 2 MiB です。しかしブロックには多数のトランザクションが含まれます。仕様の見積もりでは、ブロックのガスリミットが約 8,300 万のあたりで、1 ブロック分のレシートが 10 MiB を超える可能性があり、その場合は同期が単純に失敗します。\n\n## 仕組み\n\neth/70 は、[eth/69](/eip-7642/) で定義されたレシート関連の 2 つのメッセージにページネーションを追加します。\n\n```text\neth/69  GetReceipts (0x0f): [request-id, [blockhash₁, blockhash₂, ...]]\neth/70  GetReceipts (0x0f): [request-id, firstBlockReceiptIndex, [blockhash₁, ...]]\n\neth/69  Receipts (0x10):    [request-id, [[receipt₁, receipt₂], ...]]\neth/70  Receipts (0x10):    [request-id, lastBlockIncomplete, [[receipt₁, receipt₂], ...]]\n```\n\n- `firstBlockReceiptIndex` は、要求した**最初の**ブロックのレシートをその数だけ読み飛ばすようサーバーに伝えます。これによりクライアントは中断したところから再開できます。\n- `lastBlockIncomplete = 1` は、レスポンスの最後のリストが途中で打ち切られており、残りをクライアントが要求しなければならないことを意味します。\n\n部分的なリストは、完成するまでヘッダーの receipts root と照合できないため、クライアントは不完全なリストに対して次の妥当性チェックを行います。\n\n- 受け取ったレシートの数を、ブロックのトランザクション数と照合する。\n- 各レシートが、対応するトランザクションのガスリミット / 8 以下であること。\n- ダウンロードした合計サイズが、ブロックのガスリミットで許容される範囲に収まっていること。\n\n## サンプルコード\n\n1 つの大きなブロックのレシートを取得するクライアント側のループ（擬似コード）:\n\n```python\ndef fetch_block_receipts(peer, block_hash, tx_count):\n    receipts = []\n    while True:\n        incomplete, lists = peer.request(\n            \"GetReceipts\", first_block_receipt_index=len(receipts), hashes=[block_hash]\n        )\n        receipts += lists[0]\n        if not incomplete:\n            break\n        sanity_check_partial(receipts, tx_count)   # count, per-tx size, total size\n    verify_receipts_root(block_hash, receipts)      # full check once complete\n    return receipts\n```\n\n## 知っておくべきこと\n\n- ステータスは **Last Call** です（仕様ヘッダーによると期限は 2026-11-01）。\n- ネットワーク層のみの変更で、コンセンサスの変更もハードフォークもありません。eth/70 の展開中も、ノードは古いピアとは eth/69 で通信を続けられます。\n- 背景にあるのは、[EIP-7935](/eip-7935/) の 60M というデフォルト値やその後の引き上げなど、ガスリミットの上昇です。\n- クライアントは 1 ブロックについて、まだ検証されていない 10 MiB 超のデータをバッファする必要が生じる場合があります。妥当性チェックはこれに上限を設けるものであり、なくすものではありません。\n"},"ko":{"lang":"ko","tldr":"eth/70은 피어가 블록의 영수증을 여러 메시지로 나눠 보낼 수 있게 해서, 큰 블록 때문에 영수증 목록이 10 MiB 메시지 한도를 넘어도 영수증 동기화가 계속 동작하게 한다.","tags":["networking","devp2p","eth-protocol","receipts","sync"],"related":[7642,7825,7935],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-7975/","markdown":"## 어떤 문제를 해결하나요?\n\n노드가 과거 기록을 동기화할 때는 피어에게 `GetReceipts`로 블록 영수증을 요청하고 `Receipts` 메시지로 받습니다. 클라이언트는 보통 **10 MiB**를 넘는 p2p 메시지를 거부합니다. 메시지의 유효성은 다운로드를 마친 뒤에야 판단할 수 있기 때문입니다.\n\n트랜잭션 하나의 영수증은 크기에 한도가 있습니다. [EIP-7825](/eip-7825/)가 트랜잭션 하나를 약 1,670만 gas로 제한하고 로그 비용은 바이트당 최소 8 gas이므로, 트랜잭션 하나가 만들 수 있는 로그 데이터는 최대 약 2 MiB입니다. 하지만 블록에는 많은 트랜잭션이 들어갑니다. 스펙의 추정에 따르면 블록 가스 한도가 약 8,300만 부근일 때 한 블록의 영수증이 10 MiB를 넘을 수 있고, 그러면 동기화가 그냥 실패합니다.\n\n## 어떻게 동작하나요?\n\neth/70은 [eth/69](/eip-7642/)에서 정의한 두 영수증 메시지에 페이지네이션을 추가합니다.\n\n```text\neth/69  GetReceipts (0x0f): [request-id, [blockhash₁, blockhash₂, ...]]\neth/70  GetReceipts (0x0f): [request-id, firstBlockReceiptIndex, [blockhash₁, ...]]\n\neth/69  Receipts (0x10):    [request-id, [[receipt₁, receipt₂], ...]]\neth/70  Receipts (0x10):    [request-id, lastBlockIncomplete, [[receipt₁, receipt₂], ...]]\n```\n\n- `firstBlockReceiptIndex`는 요청한 **첫 번째** 블록의 영수증을 그 개수만큼 건너뛰라고 서버에 알려, 클라이언트가 멈춘 지점부터 이어받을 수 있게 합니다.\n- `lastBlockIncomplete = 1`은 응답의 마지막 목록이 중간에 잘렸으며 클라이언트가 나머지를 요청해야 한다는 뜻입니다.\n\n부분 목록은 완성되기 전에는 헤더의 receipts root와 대조할 수 없으므로, 클라이언트는 불완전한 목록에 다음과 같은 타당성 검사를 적용합니다.\n\n- 받은 영수증 개수를 블록의 트랜잭션 수와 대조해야 합니다.\n- 각 영수증은 해당 트랜잭션의 가스 한도 / 8보다 크면 안 됩니다.\n- 다운로드한 전체 크기가 블록 가스 한도가 허용하는 범위 안이어야 합니다.\n\n## 샘플 코드\n\n큰 블록 하나의 영수증을 가져오는 클라이언트 측 루프(의사 코드):\n\n```python\ndef fetch_block_receipts(peer, block_hash, tx_count):\n    receipts = []\n    while True:\n        incomplete, lists = peer.request(\n            \"GetReceipts\", first_block_receipt_index=len(receipts), hashes=[block_hash]\n        )\n        receipts += lists[0]\n        if not incomplete:\n            break\n        sanity_check_partial(receipts, tx_count)   # count, per-tx size, total size\n    verify_receipts_root(block_hash, receipts)      # full check once complete\n    return receipts\n```\n\n## 알아둘 점\n\n- 상태는 **Last Call**입니다(스펙 헤더 기준 마감일은 2026-11-01).\n- 네트워크 계층만 바뀝니다. 합의 변경도 하드포크도 없습니다. eth/70이 배포되는 동안에도 노드는 오래된 피어와 eth/69로 계속 통신할 수 있습니다.\n- 배경에는 [EIP-7935](/eip-7935/)의 기본값 60M과 그 이후의 인상처럼 가스 한도가 계속 오르는 상황이 있습니다.\n- 클라이언트는 여전히 블록 하나에 대해 아직 검증되지 않은 10 MiB 이상의 데이터를 버퍼링해야 할 수 있습니다. 타당성 검사는 이를 제한할 뿐 없애지는 못합니다.\n"},"zh":{"lang":"zh","tldr":"eth/70 允许节点把一个区块的收据拆成多条消息发送，这样当大区块使收据列表超过 10 MiB 的消息上限时，收据同步依然可以继续。","tags":["networking","devp2p","eth-protocol","receipts","sync"],"related":[7642,7825,7935],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-7975/","markdown":"## 它解决什么问题？\n\n节点同步历史数据时，会用 `GetReceipts` 向对等节点请求区块收据，并通过 `Receipts` 消息收到结果。客户端通常会拒绝任何超过 **10 MiB** 的 p2p 消息，因为只有下载完才能判断它是否有效。\n\n单笔交易的收据是有上限的：[EIP-7825](/eip-7825/) 把一笔交易限制在约 1670 万 gas，而日志每字节至少消耗 8 gas，所以一笔交易最多只能产生约 2 MiB 的日志数据。但一个区块包含很多笔交易。规范估计，在区块 gas 上限约 8300 万时，一个区块的收据可能超过 10 MiB，同步就会直接失败。\n\n## 它如何运作\n\neth/70 为 [eth/69](/eip-7642/) 中定义的两条收据消息增加了分页：\n\n```text\neth/69  GetReceipts (0x0f): [request-id, [blockhash₁, blockhash₂, ...]]\neth/70  GetReceipts (0x0f): [request-id, firstBlockReceiptIndex, [blockhash₁, ...]]\n\neth/69  Receipts (0x10):    [request-id, [[receipt₁, receipt₂], ...]]\neth/70  Receipts (0x10):    [request-id, lastBlockIncomplete, [[receipt₁, receipt₂], ...]]\n```\n\n- `firstBlockReceiptIndex` 告诉服务端跳过所请求的**第一个**区块的前这么多条收据，这样客户端就可以从中断处继续。\n- `lastBlockIncomplete = 1` 表示响应中的最后一个列表被截断了，客户端必须继续请求剩余部分。\n\n由于部分列表在完整之前无法与区块头中的 receipts root 校验，客户端会对不完整的列表做合理性检查：\n\n- 已收到的收据数量必须与该区块的交易数量核对；\n- 每条收据不得大于其交易 gas 上限 / 8；\n- 已下载的总大小必须符合区块 gas 上限所允许的范围。\n\n## 示例代码\n\n客户端获取一个大区块收据的循环（伪代码）：\n\n```python\ndef fetch_block_receipts(peer, block_hash, tx_count):\n    receipts = []\n    while True:\n        incomplete, lists = peer.request(\n            \"GetReceipts\", first_block_receipt_index=len(receipts), hashes=[block_hash]\n        )\n        receipts += lists[0]\n        if not incomplete:\n            break\n        sanity_check_partial(receipts, tx_count)   # count, per-tx size, total size\n    verify_receipts_root(block_hash, receipts)      # full check once complete\n    return receipts\n```\n\n## 需要注意\n\n- 状态为 **Last Call**（按规范头部，截止日期为 2026-11-01）。\n- 仅涉及网络层：没有共识变更，也不需要硬分叉。eth/70 推出期间，节点仍可与旧的对等节点使用 eth/69 通信。\n- 压力来自不断上升的 gas 上限，例如 [EIP-7935](/eip-7935/) 中的 60M 默认值及之后的提高。\n- 客户端仍可能需要为单个区块缓冲超过 10 MiB 的尚未验证的数据；合理性检查是限制这一点，而不是消除它。\n"}},"requiredBy":[8159]}
