{"eip":7642,"title":"eth/69 - history expiry and simpler receipts","description":"Adds history serving window and removes bloom filter in receipt","authors":["Marius van der Wijden (@MariusVanDerWijden)","Felix Lange \u003cfjl@ethereum.org\u003e","Ahmad Bitar (@smartprogrammer93) \u003csmartprogrammer@windowslive.com\u003e"],"status":"Final","type":"Standards Track","category":"Networking","created":"2024-02-29","requires":[5793],"discussionsTo":"https://ethereum-magicians.org/t/eth-70-drop-pre-merge-fields-from-eth-protocol/19005","repo":"EIPs","label":"EIP-7642","officialUrl":"https://eips.ethereum.org/EIPS/eip-7642","sourceUrl":"https://github.com/ethereum/EIPs/blob/master/EIPS/eip-7642.md","url":"https://eips.huatuo.xyz/eip-7642/","tldr":{"en":"Version 69 of Ethereum's eth peer-to-peer protocol: peers announce which block range they still serve (needed once pre-merge history is dropped), the handshake loses the obsolete total difficulty, and receipts are sent without their 256-byte bloom filters.","ja":"Ethereum の eth ピアツーピアプロトコルのバージョン 69。ピアが、まだ提供しているブロック範囲を告知する（マージ前の履歴を破棄すると必要になる）。ハンドシェイクから廃止済みの total difficulty がなくなり、レシートは 256 バイトの bloom フィルターなしで送られる。","ko":"이더리움 eth P2P 프로토콜의 버전 69. 피어가 자신이 아직 제공하는 블록 범위를 알린다(머지 이전 히스토리를 버리게 되면 필요). 핸드셰이크에서 쓸모없어진 total difficulty가 빠지고, 영수증은 256바이트 bloom 필터 없이 전송된다.","zh":"以太坊 eth 点对点协议的第 69 版：对等节点会公告自己仍提供的区块范围（丢弃合并前历史之后就需要这一点），握手去掉了已经过时的总难度，收据发送时不再附带 256 字节的 bloom 过滤器。"},"tags":["networking","p2p","devp2p","history-expiry","receipts"],"explainers":{"en":{"lang":"en","tldr":"Version 69 of Ethereum's eth peer-to-peer protocol: peers announce which block range they still serve (needed once pre-merge history is dropped), the handshake loses the obsolete total difficulty, and receipts are sent without their 256-byte bloom filters.","tags":["networking","p2p","devp2p","history-expiry","receipts"],"related":[5793,4444,7542,7975],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-7642/","markdown":"## What problem does it solve?\n\nThree leftovers in the `eth` wire protocol had become costly or misleading:\n\n1. **History expiry.** The history expiry working group decided that clients may drop pre-merge block history (from May 1, 2025 onward). A node syncing history over p2p then needs to know *which peers still have it*. Without that, it can only find out by asking and failing. A similar earlier proposal, [EIP-7542](/eip-7542/), was withdrawn before history expiry had been agreed.\n2. **Total difficulty.** The `Status` handshake carried `td`, which has been meaningless since the merge (post-merge blocks have difficulty 0).\n3. **Receipt blooms.** No client stores receipt bloom filters, because they can be recomputed from logs. The protocol still made serving nodes regenerate and send them. The spec estimates this at about 530 GB extra per full sync (about 95 GiB after snappy compression).\n\n## How it works\n\n`eth/69` changes three messages:\n\n**Status (0x00)**: drop `td`, add the served range.\n\n```text\neth/68: [version, networkid, td, blockhash, genesis, forkid]\neth/69: [version, networkid, genesis, forkid, earliestBlock, latestBlock, latestBlockHash]\n```\n\n**Receipts (0x10)**: flat list, no bloom, and no special wrapping for typed receipts.\n\n```text\neth/68: legacy = [status, cumulative-gas, bloom, logs]; typed = tx-type || rlp(legacy)\neth/69: receipt = [tx-type, post-state-or-status, cumulative-gas, logs]\n```\n\nThe receiver recomputes each bloom from the logs to check the block's receipts root, which is cheap.\n\n**BlockRangeUpdate (0x11)**, new: `[earliestBlock, latestBlock, latestBlockHash]`, sent when the served range changes, but at most about once per epoch (32 blocks), to keep traffic low.\n\n## Sample code\n\nRebuilding the consensus receipt (with bloom) from an eth/69 receipt, in TypeScript pseudocode:\n\n```ts\nimport { encodeRlp, concat, toBeHex } from \"ethers\";\n\ntype Log = [address: string, topics: string[], data: string];\ntype Eth69Receipt = [txType: number, status: string, cumulativeGas: string, logs: Log[]];\n\nfunction toConsensusEncoding([txType, status, gas, logs]: Eth69Receipt): string {\n  const bloom = logsBloom(logs);                     // 256-byte bloom over addresses + topics\n  const body = encodeRlp([status, gas, bloom, logs]);\n  return txType === 0 ? body : concat([toBeHex(txType, 1), body]);  // typed: type || rlp(...)\n}\n```\n\n`logsBloom` is the standard Ethereum log bloom (3 bits set per address and topic in a 2048-bit filter).\n\n## Things to know\n\n- Status is **Final**. It is a networking change only: no hard fork and no consensus changes. Clients negotiate `eth/69` with peers that support it and can keep speaking `eth/68` with older peers.\n- It builds on `eth/68` ([EIP-5793](/eip-5793/)), which added transaction types to announcements.\n- `earliestBlock` also prepares for a future, rolling history window ([EIP-4444](/eip-4444/)) and lets crawlers measure how many nodes still serve full history.\n- The next protocol version is being worked on separately: [EIP-7975](/eip-7975/) proposes `eth/70` with partial block receipt lists (Last Call at the time of writing).\n"},"ja":{"lang":"ja","tldr":"Ethereum の eth ピアツーピアプロトコルのバージョン 69。ピアが、まだ提供しているブロック範囲を告知する（マージ前の履歴を破棄すると必要になる）。ハンドシェイクから廃止済みの total difficulty がなくなり、レシートは 256 バイトの bloom フィルターなしで送られる。","tags":["networking","p2p","devp2p","history-expiry","receipts"],"related":[5793,4444,7542,7975],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-7642/","markdown":"## 何を解決するのか\n\n`eth` ワイヤープロトコルに残っていた 3 つの名残が、コストの原因になったり、誤解を招いたりしていました。\n\n1. **履歴の期限切れ（history expiry）。** history expiry ワーキンググループは、クライアントがマージ前のブロック履歴を破棄してよい（2025 年 5 月 1 日以降）と決めました。すると、p2p で履歴を同期するノードは、*どのピアがまだそれを持っているか*を知る必要があります。それがなければ、尋ねて失敗することで知るしかありません。以前の同様の提案 [EIP-7542](/eip-7542/) は、history expiry が合意される前に取り下げられました。\n2. **Total difficulty。** `Status` ハンドシェイクは `td` を運んでいましたが、マージ以降は意味がありません（マージ後のブロックの difficulty は 0 です）。\n3. **レシートの bloom。** どのクライアントもレシートの bloom フィルターを保存していません。ログから再計算できるからです。それでもプロトコルは、提供側のノードにそれを再生成して送らせていました。仕様は、これをフルシンクあたり約 530 GB の余分な転送と見積もっています（snappy 圧縮後で約 95 GiB）。\n\n## 仕組み\n\n`eth/69` は 3 つのメッセージを変更します。\n\n**Status (0x00)**: `td` を削除し、提供範囲を追加します。\n\n```text\neth/68: [version, networkid, td, blockhash, genesis, forkid]\neth/69: [version, networkid, genesis, forkid, earliestBlock, latestBlock, latestBlockHash]\n```\n\n**Receipts (0x10)**: フラットなリストで、bloom なし、型付きレシート用の特別なラッピングもありません。\n\n```text\neth/68: legacy = [status, cumulative-gas, bloom, logs]; typed = tx-type || rlp(legacy)\neth/69: receipt = [tx-type, post-state-or-status, cumulative-gas, logs]\n```\n\n受信側は、ブロックのレシートルートを検証するために、ログから各 bloom を再計算します。これは安価です。\n\n**BlockRangeUpdate (0x11)**（新規）: `[earliestBlock, latestBlock, latestBlockHash]`。提供範囲が変わったときに送られますが、トラフィックを抑えるために、多くても 1 エポック（32 ブロック）に 1 回程度です。\n\n## サンプルコード\n\neth/69 のレシートからコンセンサスのレシート（bloom 付き）を再構築する。TypeScript の疑似コード:\n\n```ts\nimport { encodeRlp, concat, toBeHex } from \"ethers\";\n\ntype Log = [address: string, topics: string[], data: string];\ntype Eth69Receipt = [txType: number, status: string, cumulativeGas: string, logs: Log[]];\n\nfunction toConsensusEncoding([txType, status, gas, logs]: Eth69Receipt): string {\n  const bloom = logsBloom(logs);                     // 256-byte bloom over addresses + topics\n  const body = encodeRlp([status, gas, bloom, logs]);\n  return txType === 0 ? body : concat([toBeHex(txType, 1), body]);  // typed: type || rlp(...)\n}\n```\n\n`logsBloom` は標準の Ethereum ログ bloom です（2048 ビットのフィルターで、アドレスとトピックごとに 3 ビットを立てます）。\n\n## 知っておくべきこと\n\n- ステータスは **Final** です。ネットワーク層のみの変更で、ハードフォークもコンセンサスの変更もありません。クライアントは、サポートするピアとは `eth/69` をネゴシエートし、古いピアとは引き続き `eth/68` で通信できます。\n- これは、アナウンスにトランザクションタイプを追加した `eth/68`（[EIP-5793](/eip-5793/)）を土台にしています。\n- `earliestBlock` は、将来のローリング式の履歴ウィンドウ（[EIP-4444](/eip-4444/)）にも備えるもので、クローラーが、完全な履歴をまだ提供しているノードの数を測定できるようにします。\n- 次のプロトコルバージョンは別途検討が進んでいます。[EIP-7975](/eip-7975/) は、部分的なブロックレシートリストを備えた `eth/70` を提案しています（執筆時点では Last Call）。\n"},"ko":{"lang":"ko","tldr":"이더리움 eth P2P 프로토콜의 버전 69. 피어가 자신이 아직 제공하는 블록 범위를 알린다(머지 이전 히스토리를 버리게 되면 필요). 핸드셰이크에서 쓸모없어진 total difficulty가 빠지고, 영수증은 256바이트 bloom 필터 없이 전송된다.","tags":["networking","p2p","devp2p","history-expiry","receipts"],"related":[5793,4444,7542,7975],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-7642/","markdown":"## 어떤 문제를 해결하나요?\n\n`eth` 와이어 프로토콜에는 비용이 크거나 오해를 부르는 세 가지 잔재가 있었습니다.\n\n1. **히스토리 만료(history expiry).** history expiry 워킹 그룹은 클라이언트가 머지 이전 블록 히스토리를 버려도 된다고 결정했습니다(2025년 5월 1일부터). 그러면 p2p로 히스토리를 동기화하는 노드는 *어떤 피어가 아직 그것을 가지고 있는지* 알아야 합니다. 그렇지 않으면 물어보고 실패해 보는 수밖에 없습니다. 이전의 비슷한 제안인 [EIP-7542](/eip-7542/)는 history expiry가 합의되기 전에 철회되었습니다.\n2. **Total difficulty.** `Status` 핸드셰이크는 `td`를 실어 보냈는데, 머지 이후로는 의미가 없습니다(머지 이후 블록의 difficulty는 0).\n3. **영수증 bloom.** 어떤 클라이언트도 영수증 bloom 필터를 저장하지 않습니다. 로그에서 다시 계산할 수 있기 때문입니다. 그런데도 프로토콜은 제공하는 노드가 이를 다시 생성해 전송하게 했습니다. 명세는 이로 인해 풀 싱크당 약 530 GB가 추가된다고 추정합니다(snappy 압축 후 약 95 GiB).\n\n## 어떻게 동작하나요?\n\n`eth/69`는 세 가지 메시지를 바꿉니다.\n\n**Status (0x00)**: `td`를 빼고 제공 범위를 추가합니다.\n\n```text\neth/68: [version, networkid, td, blockhash, genesis, forkid]\neth/69: [version, networkid, genesis, forkid, earliestBlock, latestBlock, latestBlockHash]\n```\n\n**Receipts (0x10)**: 평평한 목록이며 bloom이 없고, 타입이 있는 영수증을 위한 특별한 래핑도 없습니다.\n\n```text\neth/68: legacy = [status, cumulative-gas, bloom, logs]; typed = tx-type || rlp(legacy)\neth/69: receipt = [tx-type, post-state-or-status, cumulative-gas, logs]\n```\n\n수신 측은 블록의 영수증 루트를 확인하기 위해 로그에서 각 bloom을 다시 계산하며, 이는 비용이 적게 듭니다.\n\n**BlockRangeUpdate (0x11)**, 신규: `[earliestBlock, latestBlock, latestBlockHash]`. 제공 범위가 바뀔 때 전송되지만, 트래픽을 낮게 유지하기 위해 대략 에포크(32블록)당 한 번을 넘지 않습니다.\n\n## 샘플 코드\n\neth/69 영수증에서 합의 영수증(bloom 포함) 재구성하기. TypeScript 의사 코드:\n\n```ts\nimport { encodeRlp, concat, toBeHex } from \"ethers\";\n\ntype Log = [address: string, topics: string[], data: string];\ntype Eth69Receipt = [txType: number, status: string, cumulativeGas: string, logs: Log[]];\n\nfunction toConsensusEncoding([txType, status, gas, logs]: Eth69Receipt): string {\n  const bloom = logsBloom(logs);                     // 256-byte bloom over addresses + topics\n  const body = encodeRlp([status, gas, bloom, logs]);\n  return txType === 0 ? body : concat([toBeHex(txType, 1), body]);  // typed: type || rlp(...)\n}\n```\n\n`logsBloom`은 표준 이더리움 로그 bloom입니다(2048비트 필터에서 주소와 토픽마다 3비트를 설정).\n\n## 알아둘 점\n\n- 상태는 **Final**입니다. 네트워킹만 바뀌는 것으로, 하드 포크도 합의 변경도 없습니다. 클라이언트는 지원하는 피어와 `eth/69`를 협상하고, 더 오래된 피어와는 계속 `eth/68`로 통신할 수 있습니다.\n- 이는 공지에 트랜잭션 타입을 추가한 `eth/68`([EIP-5793](/eip-5793/))을 기반으로 합니다.\n- `earliestBlock`은 앞으로의 롤링 히스토리 윈도우([EIP-4444](/eip-4444/))에도 대비하며, 크롤러가 전체 히스토리를 아직 제공하는 노드가 몇 개인지 측정할 수 있게 합니다.\n- 다음 프로토콜 버전은 별도로 작업 중입니다. [EIP-7975](/eip-7975/)는 부분 블록 영수증 목록을 갖춘 `eth/70`을 제안합니다(작성 시점에 Last Call).\n"},"zh":{"lang":"zh","tldr":"以太坊 eth 点对点协议的第 69 版：对等节点会公告自己仍提供的区块范围（丢弃合并前历史之后就需要这一点），握手去掉了已经过时的总难度，收据发送时不再附带 256 字节的 bloom 过滤器。","tags":["networking","p2p","devp2p","history-expiry","receipts"],"related":[5793,4444,7542,7975],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-7642/","markdown":"## 它解决什么问题？\n\n`eth` 线路协议中有三处遗留问题，已经变得代价高昂或具有误导性：\n\n1. **历史过期（history expiry）。** 历史过期工作组决定，客户端可以丢弃合并前的区块历史（自 2025 年 5 月 1 日起）。这样，通过 p2p 同步历史的节点就需要知道*哪些对等节点仍然拥有它*。否则，它只能通过询问并失败来发现。此前一个类似的提案 [EIP-7542](/eip-7542/)，在历史过期达成一致之前就被撤回了。\n2. **总难度（total difficulty）。** `Status` 握手携带了 `td`，而自合并以来它已毫无意义（合并后的区块难度为 0）。\n3. **收据 bloom。** 没有客户端存储收据的 bloom 过滤器，因为可以根据日志重新计算。但协议仍然让提供数据的节点重新生成并发送它们。规范估计，每次全量同步因此多出约 530 GB（snappy 压缩后约 95 GiB）。\n\n## 它如何运作\n\n`eth/69` 修改了三条消息：\n\n**Status (0x00)**：去掉 `td`，加入所提供的范围。\n\n```text\neth/68: [version, networkid, td, blockhash, genesis, forkid]\neth/69: [version, networkid, genesis, forkid, earliestBlock, latestBlock, latestBlockHash]\n```\n\n**Receipts (0x10)**：扁平列表，没有 bloom，对带类型的收据也不再做特殊包装。\n\n```text\neth/68: legacy = [status, cumulative-gas, bloom, logs]; typed = tx-type || rlp(legacy)\neth/69: receipt = [tx-type, post-state-or-status, cumulative-gas, logs]\n```\n\n接收方根据日志重新计算每个 bloom，以检查区块的收据根，这个代价很低。\n\n**BlockRangeUpdate (0x11)**，新增：`[earliestBlock, latestBlock, latestBlockHash]`，在所提供的范围发生变化时发送，但最多大约每个 epoch（32 个区块）一次，以降低流量。\n\n## 示例代码\n\n根据 eth/69 的收据重建共识收据（含 bloom），TypeScript 伪代码：\n\n```ts\nimport { encodeRlp, concat, toBeHex } from \"ethers\";\n\ntype Log = [address: string, topics: string[], data: string];\ntype Eth69Receipt = [txType: number, status: string, cumulativeGas: string, logs: Log[]];\n\nfunction toConsensusEncoding([txType, status, gas, logs]: Eth69Receipt): string {\n  const bloom = logsBloom(logs);                     // 256-byte bloom over addresses + topics\n  const body = encodeRlp([status, gas, bloom, logs]);\n  return txType === 0 ? body : concat([toBeHex(txType, 1), body]);  // typed: type || rlp(...)\n}\n```\n\n`logsBloom` 是标准的以太坊日志 bloom（在 2048 位的过滤器中，每个地址和每个 topic 置位 3 个比特）。\n\n## 需要注意\n\n- 状态为 **Final**。这只是网络层的变更：没有硬分叉，也没有共识变更。客户端与支持 `eth/69` 的对等节点协商使用它，与较旧的对等节点则可以继续使用 `eth/68`。\n- 它建立在 `eth/68`（[EIP-5793](/eip-5793/)）之上，后者为公告增加了交易类型。\n- `earliestBlock` 也为未来的滚动历史窗口（[EIP-4444](/eip-4444/)）做好了准备，并让爬虫可以统计有多少节点仍提供完整历史。\n- 下一个协议版本正在另行推进：[EIP-7975](/eip-7975/) 提出了带有部分区块收据列表的 `eth/70`（撰写时处于 Last Call）。\n"}},"requiredBy":[7542,7607,7801,7975,8077,8094]}
