{"eip":7668,"title":"Remove bloom filters","description":"Remove bloom filters from the execution block","authors":["Vitalik Buterin (@vbuterin)"],"status":"Stagnant","type":"Standards Track","category":"Core","created":"2024-03-31","discussionsTo":"https://ethereum-magicians.org/t/eip-7653-remove-bloom-filters/19447","repo":"EIPs","label":"EIP-7668","officialUrl":"https://eips.ethereum.org/EIPS/eip-7668","sourceUrl":"https://github.com/ethereum/EIPs/blob/master/EIPS/eip-7668.md","url":"https://eips.huatuo.xyz/eip-7668/","tldr":{"en":"Proposes requiring the logs bloom filters in block headers and receipts to be empty, dropping a slow, rarely used log-search feature from the protocol.","ja":"ブロックヘッダーとレシートの logs bloom フィルターを空にすることを義務づけ、遅くてほとんど使われないログ検索機能をプロトコルから外すことを提案している。","ko":"블록 헤더와 영수증의 로그 블룸 필터를 비어 있도록 요구하여, 느리고 거의 쓰이지 않는 로그 검색 기능을 프로토콜에서 없애자고 제안한다.","zh":"提议要求区块头和收据中的日志布隆过滤器必须为空，从协议中去掉一个缓慢且很少使用的日志搜索功能。"},"tags":["logs","bloom","history","core","cleanup"],"explainers":{"en":{"lang":"en","tldr":"Proposes requiring the logs bloom filters in block headers and receipts to be empty, dropping a slow, rarely used log-search feature from the protocol.","tags":["logs","bloom","history","core","cleanup"],"related":[4444,7708],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-7668/","markdown":"## What problem does it solve?\n\nEvery Ethereum block header and every transaction receipt carries a 256-byte **logs bloom**: a probabilistic summary of which contract addresses and event topics appear in that block's logs. The idea was that a dapp (or a light client) could scan blooms across history, skip blocks that definitely do not contain the events it cares about, and only fetch the few that might.\n\nIn practice this works poorly. At today's gas limits blocks contain so many logs that blooms are mostly full, so the false-positive rate is high and a long history query still touches a huge number of blocks. Almost all applications that read history use indexers and other services outside the protocol instead of walking blooms through RPC. Meanwhile, every client still has to compute, store and validate these filters.\n\nEIP-7668 proposes accepting that reality and removing the bloom filters from consensus.\n\n## How it works\n\nThe change is deliberately minimal:\n\n- The `logsBloom` field of an execution block header **must be empty** (0 bytes long).\n- The `logsBloom` field of every transaction receipt **must be empty** as well.\n\nThe fields themselves are not removed yet; the spec says a later EIP could delete them along with other deprecated fields. Keeping the field but forcing it empty is the least disruptive way to stop clients from having to build blooms.\n\nWhat does **not** change:\n\n- Logs are still emitted, stored in receipts and returned by `eth_getLogs`. Only the bloom summary goes away.\n- `LOG0`–`LOG4` gas costs stay the same. The author argues that although the cost of polluting the bloom disappears, hashing costs matter more now because of ZK-proving of the EVM.\n\nThe longer-term expectation is that applications needing history search will use decentralized, provable log indexes (for example built with ZK-SNARKs) rather than in-protocol blooms.\n\n## Sample code\n\nIllustrative block-validation rule after the change (pseudocode):\n\n```python\ndef validate_blooms(header, receipts):\n    # EIP-7668: the header bloom and every receipt bloom must be empty\n    assert len(header.logs_bloom) == 0, \"header bloom must be empty\"\n    for r in receipts:\n        assert len(r.logs_bloom) == 0, \"receipt bloom must be empty\"\n```\n\nQuerying logs from an application keeps working the same way, because nodes filter logs directly (ethers v6):\n\n```ts\nimport { JsonRpcProvider, id } from \"ethers\";\n\nconst provider = new JsonRpcProvider(process.env.RPC_URL);\nconst logs = await provider.getLogs({\n  address: tokenAddress,\n  topics: [id(\"Transfer(address,address,uint256)\")],\n  fromBlock: latest - 1000,\n  toBlock: latest,\n});\nconsole.log(logs.length);\n```\n\n## Things to know\n\n- **Status: Stagnant.** This EIP has not been scheduled for any network upgrade and blooms are still part of the protocol today.\n- Anything that reads `logsBloom` directly from headers or receipts (some light-client designs, custom indexers) would stop working if this were adopted. RPC log filtering itself would not break, but nodes could no longer use blooms to speed it up.\n- It fits a broader trend of moving historical data access out of the core protocol, alongside history-expiry work such as [EIP-4444](/eip-4444/).\n- The discussion thread is titled under an earlier number (EIP-7653); the proposal is the same idea.\n"},"ja":{"lang":"ja","tldr":"ブロックヘッダーとレシートの logs bloom フィルターを空にすることを義務づけ、遅くてほとんど使われないログ検索機能をプロトコルから外すことを提案している。","tags":["logs","bloom","history","core","cleanup"],"related":[4444,7708],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-7668/","markdown":"## 何を解決するのか\n\nEthereum のすべてのブロックヘッダーとすべてのトランザクションレシートは、256 バイトの **logs bloom** を持っています。これは、そのブロックのログにどのコントラクトアドレスやイベントトピックが現れるかを確率的に要約したものです。dapp（またはライトクライアント）が履歴全体の bloom をスキャンし、関心のあるイベントを確実に含まないブロックを飛ばして、含んでいる可能性のある少数のブロックだけを取得できる、という発想でした。\n\n実際には、これはうまく機能しません。現在のガスリミットではブロックに非常に多くのログが含まれるため、bloom はほとんど満杯で、偽陽性率が高く、長い履歴のクエリは依然として膨大な数のブロックに触れます。履歴を読むほぼすべてのアプリケーションは、RPC 経由で bloom をたどる代わりに、プロトコル外のインデクサーなどのサービスを使っています。それでも、すべてのクライアントはこれらのフィルターの計算、保存、検証をしなければなりません。\n\nEIP-7668 は、その現実を受け入れ、bloom フィルターをコンセンサスから取り除くことを提案します。\n\n## 仕組み\n\n変更は意図的に最小限です。\n\n- 実行ブロックヘッダーの `logsBloom` フィールドは**空でなければなりません**（長さ 0 バイト）。\n- すべてのトランザクションレシートの `logsBloom` フィールドも**空でなければなりません**。\n\nフィールド自体はまだ削除されません。仕様は、後の EIP が他の非推奨フィールドとともにそれらを削除できると述べています。フィールドは残したまま強制的に空にすることが、クライアントが bloom を構築しなくて済むようにする最も混乱の少ない方法です。\n\n変わら**ない**もの:\n\n- ログは引き続き emit され、レシートに保存され、`eth_getLogs` で返されます。なくなるのは bloom による要約だけです。\n- `LOG0`〜`LOG4` のガスコストは変わりません。著者は、bloom を汚染するコストはなくなるものの、EVM の ZK 証明が行われるようになった今は、ハッシュのコストのほうが重要だと主張しています。\n\nより長期的には、履歴検索を必要とするアプリケーションは、プロトコル内の bloom ではなく、分散型で証明可能なログインデックス（たとえば ZK-SNARK で構築されたもの）を使うことが期待されています。\n\n## サンプルコード\n\n変更後のブロック検証ルールの例（擬似コード）:\n\n```python\ndef validate_blooms(header, receipts):\n    # EIP-7668: the header bloom and every receipt bloom must be empty\n    assert len(header.logs_bloom) == 0, \"header bloom must be empty\"\n    for r in receipts:\n        assert len(r.logs_bloom) == 0, \"receipt bloom must be empty\"\n```\n\nノードがログを直接フィルタリングするため、アプリケーションからのログのクエリは同じように動作し続けます（ethers v6）。\n\n```ts\nimport { JsonRpcProvider, id } from \"ethers\";\n\nconst provider = new JsonRpcProvider(process.env.RPC_URL);\nconst logs = await provider.getLogs({\n  address: tokenAddress,\n  topics: [id(\"Transfer(address,address,uint256)\")],\n  fromBlock: latest - 1000,\n  toBlock: latest,\n});\nconsole.log(logs.length);\n```\n\n## 知っておくべきこと\n\n- **ステータス: Stagnant。** この EIP はどのネットワークアップグレードにも予定されておらず、bloom は現在もプロトコルの一部です。\n- ヘッダーやレシートから `logsBloom` を直接読むもの（一部のライトクライアント設計、独自のインデクサー）は、これが採用されると動かなくなります。RPC のログフィルタリング自体は壊れませんが、ノードはそれを高速化するために bloom をもう使えなくなります。\n- これは、[EIP-4444](/eip-4444/) のような履歴の有効期限に関する取り組みと並んで、履歴データへのアクセスをコアプロトコルの外に出すという、より広い流れに沿ったものです。\n- 議論のスレッドは以前の番号（EIP-7653）のもとでタイトルが付けられていますが、提案は同じ内容です。\n"},"ko":{"lang":"ko","tldr":"블록 헤더와 영수증의 로그 블룸 필터를 비어 있도록 요구하여, 느리고 거의 쓰이지 않는 로그 검색 기능을 프로토콜에서 없애자고 제안한다.","tags":["logs","bloom","history","core","cleanup"],"related":[4444,7708],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-7668/","markdown":"## 어떤 문제를 해결하나요?\n\n이더리움의 모든 블록 헤더와 모든 트랜잭션 영수증에는 256바이트짜리 **logs bloom**이 들어 있습니다. 해당 블록의 로그에 어떤 컨트랙트 주소와 이벤트 토픽이 나타나는지를 확률적으로 요약한 것입니다. dapp(또는 라이트 클라이언트)이 전체 히스토리의 블룸을 훑어, 관심 있는 이벤트가 확실히 없는 블록은 건너뛰고 있을 수도 있는 소수의 블록만 가져오자는 발상이었습니다.\n\n실제로는 잘 동작하지 않습니다. 오늘날의 가스 한도에서는 블록에 로그가 너무 많이 들어 있어 블룸이 대부분 가득 차 있고, 그래서 거짓 양성률이 높아 긴 히스토리 조회는 여전히 엄청나게 많은 블록을 건드립니다. 히스토리를 읽는 거의 모든 애플리케이션은 RPC로 블룸을 따라가는 대신 프로토콜 밖의 인덱서 등 서비스를 사용합니다. 그러는 동안에도 모든 클라이언트는 이 필터를 계산하고, 저장하고, 검증해야 합니다.\n\nEIP-7668은 이 현실을 받아들이고 블룸 필터를 합의에서 제거하자고 제안합니다.\n\n## 어떻게 동작하나요?\n\n변경은 의도적으로 최소한입니다.\n\n- 실행 블록 헤더의 `logsBloom` 필드는 **비어 있어야 합니다**(길이 0바이트).\n- 모든 트랜잭션 영수증의 `logsBloom` 필드도 **비어 있어야 합니다**.\n\n필드 자체는 아직 제거되지 않습니다. 명세는 이후의 EIP가 다른 폐지 예정 필드와 함께 이를 삭제할 수 있다고 말합니다. 필드는 두되 강제로 비우는 것이, 클라이언트가 블룸을 만들지 않아도 되게 하는 가장 혼란이 적은 방법입니다.\n\n바뀌지 **않는** 것:\n\n- 로그는 여전히 emit되고, 영수증에 저장되며, `eth_getLogs`로 반환됩니다. 사라지는 것은 블룸 요약뿐입니다.\n- `LOG0`~`LOG4`의 가스 비용은 그대로입니다. 저자는 블룸을 오염시키는 비용은 사라지지만, EVM의 ZK 증명이 이뤄지는 지금은 해시 비용이 더 중요하다고 주장합니다.\n\n장기적으로는 히스토리 검색이 필요한 애플리케이션이 프로토콜 내 블룸이 아니라 탈중앙화된 증명 가능한 로그 인덱스(예: ZK-SNARK로 만든 것)를 사용할 것으로 기대합니다.\n\n## 샘플 코드\n\n변경 후 블록 검증 규칙의 예시(의사 코드):\n\n```python\ndef validate_blooms(header, receipts):\n    # EIP-7668: the header bloom and every receipt bloom must be empty\n    assert len(header.logs_bloom) == 0, \"header bloom must be empty\"\n    for r in receipts:\n        assert len(r.logs_bloom) == 0, \"receipt bloom must be empty\"\n```\n\n노드가 로그를 직접 필터링하므로 애플리케이션에서 로그를 조회하는 방식은 그대로 동작합니다(ethers v6).\n\n```ts\nimport { JsonRpcProvider, id } from \"ethers\";\n\nconst provider = new JsonRpcProvider(process.env.RPC_URL);\nconst logs = await provider.getLogs({\n  address: tokenAddress,\n  topics: [id(\"Transfer(address,address,uint256)\")],\n  fromBlock: latest - 1000,\n  toBlock: latest,\n});\nconsole.log(logs.length);\n```\n\n## 알아둘 점\n\n- **상태: Stagnant.** 이 EIP는 어떤 네트워크 업그레이드에도 예정되어 있지 않으며 블룸은 현재도 프로토콜의 일부입니다.\n- 헤더나 영수증에서 `logsBloom`을 직접 읽는 것(일부 라이트 클라이언트 설계, 커스텀 인덱서)은 이 제안이 채택되면 동작하지 않게 됩니다. RPC 로그 필터링 자체는 깨지지 않지만 노드는 더 이상 블룸으로 속도를 높일 수 없습니다.\n- 이는 [EIP-4444](/eip-4444/) 같은 히스토리 만료 작업과 함께, 과거 데이터 접근을 핵심 프로토콜 밖으로 옮기려는 더 넓은 흐름에 부합합니다.\n- 논의 스레드의 제목은 이전 번호(EIP-7653)로 되어 있지만 제안은 같은 아이디어입니다.\n"},"zh":{"lang":"zh","tldr":"提议要求区块头和收据中的日志布隆过滤器必须为空，从协议中去掉一个缓慢且很少使用的日志搜索功能。","tags":["logs","bloom","history","core","cleanup"],"related":[4444,7708],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-7668/","markdown":"## 它解决什么问题？\n\n以太坊的每个区块头和每张交易收据都带有一个 256 字节的**日志布隆（logs bloom）**：对该区块日志中出现了哪些合约地址和事件主题的概率性摘要。其设想是，dapp（或轻客户端）可以扫描整个历史上的布隆，跳过肯定不包含自己关心事件的区块，只获取少数可能包含的区块。\n\n实际上这效果不佳。在当今的 gas 上限下，区块包含的日志太多，布隆大多是满的，误报率很高，长历史查询仍然会触及大量区块。几乎所有读取历史的应用都使用协议之外的索引器和其他服务，而不是通过 RPC 逐个检查布隆。与此同时，每个客户端仍然必须计算、存储和验证这些过滤器。\n\nEIP-7668 提议接受这一现实，把布隆过滤器从共识中移除。\n\n## 它如何运作\n\n这一变更刻意保持最小：\n\n- 执行区块头的 `logsBloom` 字段**必须为空**（长度为 0 字节）。\n- 每张交易收据的 `logsBloom` 字段也**必须为空**。\n\n这些字段本身暂时不会被移除；规范指出，以后的 EIP 可以把它们与其他已弃用的字段一起删除。保留字段但强制其为空，是让客户端不必再构建布隆的最小干扰方式。\n\n**不会**改变的内容：\n\n- 日志仍然会被发出，存储在收据中，并由 `eth_getLogs` 返回。消失的只有布隆摘要。\n- `LOG0`–`LOG4` 的 gas 成本保持不变。作者认为，尽管污染布隆的成本消失了，但由于现在要对 EVM 进行 ZK 证明，哈希成本更为重要。\n\n更长远的预期是，需要历史搜索的应用将使用去中心化、可证明的日志索引（例如用 ZK-SNARK 构建），而不是协议内的布隆。\n\n## 示例代码\n\n变更后的区块验证规则示意（伪代码）：\n\n```python\ndef validate_blooms(header, receipts):\n    # EIP-7668: the header bloom and every receipt bloom must be empty\n    assert len(header.logs_bloom) == 0, \"header bloom must be empty\"\n    for r in receipts:\n        assert len(r.logs_bloom) == 0, \"receipt bloom must be empty\"\n```\n\n应用查询日志的方式保持不变，因为节点直接过滤日志（ethers v6）：\n\n```ts\nimport { JsonRpcProvider, id } from \"ethers\";\n\nconst provider = new JsonRpcProvider(process.env.RPC_URL);\nconst logs = await provider.getLogs({\n  address: tokenAddress,\n  topics: [id(\"Transfer(address,address,uint256)\")],\n  fromBlock: latest - 1000,\n  toBlock: latest,\n});\nconsole.log(logs.length);\n```\n\n## 需要注意\n\n- **状态：Stagnant。** 该 EIP 尚未被排入任何网络升级，布隆目前仍是协议的一部分。\n- 任何直接从区块头或收据读取 `logsBloom` 的东西（某些轻客户端设计、自定义索引器）在该提案被采纳后都将停止工作。RPC 日志过滤本身不会失效，但节点将无法再使用布隆来加速它。\n- 它符合把历史数据访问移出核心协议这一更广泛的趋势，与 [EIP-4444](/eip-4444/) 等历史过期工作并行。\n- 讨论帖的标题使用的是更早的编号（EIP-7653）；提案是同一个想法。\n"}},"requiredBy":[6466,7919]}
