{"eip":7934,"title":"RLP Execution Block Size Limit","description":"Introduce a protocol-level cap on the maximum RLP-encoded block size to 10 MiB, including a 2 MiB margin for beacon block size.","authors":["Giulio Rebuffo (@Giulio2002)","Ben Adams (@benaadams)","Storm Slivkoff (@sslivkoff)"],"status":"Final","type":"Standards Track","category":"Core","created":"2025-04-16","discussionsTo":"https://ethereum-magicians.org/t/eip-7934-add-bytesize-limit-to-blocks/23589","repo":"EIPs","label":"EIP-7934","officialUrl":"https://eips.ethereum.org/EIPS/eip-7934","sourceUrl":"https://github.com/ethereum/EIPs/blob/master/EIPS/eip-7934.md","url":"https://eips.huatuo.xyz/eip-7934/","tldr":{"en":"Caps the RLP-encoded size of an execution block at 8 MiB (a 10 MiB limit minus a 2 MiB margin for the beacon block), so oversized blocks are invalid instead of silently failing to propagate.","ja":"実行ブロックの RLP エンコード後のサイズを 8 MiB（10 MiB の上限から、ビーコンブロック用の 2 MiB の余裕を引いた値）に制限し、サイズ超過のブロックが黙って伝播に失敗するのではなく、無効になるようにする。","ko":"실행 블록의 RLP 인코딩 크기를 8 MiB(10 MiB 한도에서 비콘 블록용 2 MiB 여유분을 뺀 값)로 제한해, 크기가 초과된 블록이 조용히 전파에 실패하는 대신 무효가 되게 한다.","zh":"把执行区块 RLP 编码后的大小上限定为 8 MiB（10 MiB 的上限减去为信标区块预留的 2 MiB 余量），这样超大区块会直接判定为无效，而不是悄无声息地无法传播。"},"tags":["block-size","networking","dos","core","fusaka"],"explainers":{"en":{"lang":"en","tldr":"Caps the RLP-encoded size of an execution block at 8 MiB (a 10 MiB limit minus a 2 MiB margin for the beacon block), so oversized blocks are invalid instead of silently failing to propagate.","tags":["block-size","networking","dos","core","fusaka"],"related":[7825,7623,4844],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-7934/","markdown":"## What problem does it solve?\n\nEthereum limits blocks by gas, not by bytes. Some data is cheap in gas but large in bytes, so a block within the gas limit could still be very big. Very large blocks propagate slowly, raising the risk of missed slots and reorgs, and an attacker could build them deliberately to stress the network.\n\nThere was also a hidden mismatch: the consensus layer's gossip protocol does not propagate messages larger than 10 MiB. An execution block that pushed the beacon block over that size would be valid by the rules but would not spread across the network, which could fragment it.\n\nEIP-7934 makes the byte limit an explicit validity rule, so execution and consensus layers agree on what a valid block is.\n\n## How it works\n\nThree constants are defined:\n\n| Constant | Value |\n| --- | --- |\n| `MAX_BLOCK_SIZE` | 10 MiB (10,485,760 bytes) |\n| `SAFETY_MARGIN` | 2 MiB (2,097,152 bytes) |\n| `MAX_RLP_BLOCK_SIZE` | `MAX_BLOCK_SIZE - SAFETY_MARGIN` = 8 MiB (8,388,608 bytes) |\n\n- **Block building:** producers must not create a block whose RLP encoding exceeds `MAX_RLP_BLOCK_SIZE`.\n- **Block validation:** nodes must reject any such block.\n\nThe 2 MiB margin leaves room for the rest of the beacon block that wraps the execution payload, so the whole message stays under the 10 MiB gossip cap. The limit applies independently of gas: a block must satisfy both.\n\n## Sample code\n\nThe check, as given in the spec:\n\n```python\nMAX_BLOCK_SIZE = 10_485_760      # 10 MiB\nSAFETY_MARGIN = 2_097_152        # 2 MiB\nMAX_RLP_BLOCK_SIZE = MAX_BLOCK_SIZE - SAFETY_MARGIN  # 8 MiB\n\ndef exceed_max_rlp_block_size(block) -\u003e bool:\n    # True -\u003e the block is invalid and must not be built or accepted\n    return len(rlp.encode(block)) \u003e MAX_RLP_BLOCK_SIZE\n```\n\nA builder adding transactions greedily might track the running size alongside gas:\n\n```python\nsize = len(rlp.encode(header_and_empty_body))\nfor tx in candidates:\n    tx_size = len(tx.encoded)\n    if gas_used + tx.gas \u003e gas_limit or size + tx_size \u003e MAX_RLP_BLOCK_SIZE:\n        continue\n    include(tx); gas_used += tx.gas; size += tx_size\n```\n\n(The size estimate is approximate because RLP list headers grow slightly; the final check must be on the real encoding.)\n\n## Things to know\n\n- Status is Final; it was part of the Fusaka (Osaka) upgrade.\n- Despite the title mentioning 10 MiB, the effective limit on the RLP-encoded execution block is **8 MiB**.\n- The cap counts the RLP-encoded execution block. Blob data is carried separately (see [EIP-4844](/eip-4844/)) and is not part of this size.\n- Ordinary users are unaffected; normal blocks are far below the limit. It mainly matters to block builders and to anyone constructing unusually data-heavy transactions.\n- It complements other measures that bound worst-case blocks, such as the per-transaction gas cap in [EIP-7825](/eip-7825/) and the higher calldata pricing of [EIP-7623](/eip-7623/).\n"},"ja":{"lang":"ja","tldr":"実行ブロックの RLP エンコード後のサイズを 8 MiB（10 MiB の上限から、ビーコンブロック用の 2 MiB の余裕を引いた値）に制限し、サイズ超過のブロックが黙って伝播に失敗するのではなく、無効になるようにする。","tags":["block-size","networking","dos","core","fusaka"],"related":[7825,7623,4844],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-7934/","markdown":"## 何を解決するのか\n\nEthereum はブロックを、バイト数ではなく gas で制限しています。gas では安くてもバイト数では大きいデータがあるため、gas 上限の範囲内でも非常に大きなブロックができる可能性があります。非常に大きなブロックは伝播が遅く、スロットの取りこぼしやリオルグのリスクを高めます。攻撃者がネットワークに負荷をかけるために意図的にそうしたブロックを作ることもありえます。\n\n隠れた不整合もありました。コンセンサスレイヤーのゴシッププロトコルは、10 MiB を超えるメッセージを伝播しません。実行ブロックによってビーコンブロックがそのサイズを超えると、ルール上は有効でもネットワークに広がらず、ネットワークの分断を招きかねません。\n\nEIP-7934 は、バイト数の上限を明示的な有効性ルールにすることで、実行レイヤーとコンセンサスレイヤーが有効なブロックについて合意できるようにします。\n\n## 仕組み\n\n3 つの定数が定義されます。\n\n| 定数 | 値 |\n| --- | --- |\n| `MAX_BLOCK_SIZE` | 10 MiB（10,485,760 バイト） |\n| `SAFETY_MARGIN` | 2 MiB（2,097,152 バイト） |\n| `MAX_RLP_BLOCK_SIZE` | `MAX_BLOCK_SIZE - SAFETY_MARGIN` = 8 MiB（8,388,608 バイト） |\n\n- **ブロックの構築:** プロデューサーは、RLP エンコードが `MAX_RLP_BLOCK_SIZE` を超えるブロックを作ってはなりません。\n- **ブロックの検証:** ノードは、そのようなブロックを拒否しなければなりません。\n\n2 MiB の余裕は、実行ペイロードを包むビーコンブロックの残りの部分のために確保されており、メッセージ全体がゴシップの上限である 10 MiB を下回るようになっています。この制限は gas とは独立に適用され、ブロックは両方を満たさなければなりません。\n\n## サンプルコード\n\n仕様に示されているチェック:\n\n```python\nMAX_BLOCK_SIZE = 10_485_760      # 10 MiB\nSAFETY_MARGIN = 2_097_152        # 2 MiB\nMAX_RLP_BLOCK_SIZE = MAX_BLOCK_SIZE - SAFETY_MARGIN  # 8 MiB\n\ndef exceed_max_rlp_block_size(block) -\u003e bool:\n    # True -\u003e the block is invalid and must not be built or accepted\n    return len(rlp.encode(block)) \u003e MAX_RLP_BLOCK_SIZE\n```\n\nトランザクションを貪欲に追加するビルダーは、gas と並べて現在のサイズを追跡するかもしれません。\n\n```python\nsize = len(rlp.encode(header_and_empty_body))\nfor tx in candidates:\n    tx_size = len(tx.encoded)\n    if gas_used + tx.gas \u003e gas_limit or size + tx_size \u003e MAX_RLP_BLOCK_SIZE:\n        continue\n    include(tx); gas_used += tx.gas; size += tx_size\n```\n\n（RLP のリストヘッダーがわずかに大きくなるため、サイズの見積もりは概算です。最終的なチェックは実際のエンコードに対して行う必要があります。）\n\n## 知っておくべきこと\n\n- ステータスは Final で、Fusaka（Osaka）アップグレードの一部でした。\n- タイトルには 10 MiB とありますが、RLP エンコードされた実行ブロックの実効的な上限は **8 MiB** です。\n- 上限の対象は RLP エンコードされた実行ブロックです。blob データは別に運ばれる（[EIP-4844](/eip-4844/) を参照）ため、このサイズには含まれません。\n- 一般のユーザーには影響しません。通常のブロックは上限をはるかに下回っています。主にブロックビルダーや、データ量の異常に多いトランザクションを構築する人にとって重要です。\n- [EIP-7825](/eip-7825/) のトランザクションごとの gas 上限や、[EIP-7623](/eip-7623/) の高いコールデータ価格設定など、最悪ケースのブロックを抑える他の施策を補完します。\n"},"ko":{"lang":"ko","tldr":"실행 블록의 RLP 인코딩 크기를 8 MiB(10 MiB 한도에서 비콘 블록용 2 MiB 여유분을 뺀 값)로 제한해, 크기가 초과된 블록이 조용히 전파에 실패하는 대신 무효가 되게 한다.","tags":["block-size","networking","dos","core","fusaka"],"related":[7825,7623,4844],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-7934/","markdown":"## 어떤 문제를 해결하나요?\n\n이더리움은 블록을 바이트가 아니라 gas로 제한합니다. gas로는 싸지만 바이트로는 큰 데이터가 있으므로, gas 한도 안에 있는 블록도 매우 클 수 있습니다. 매우 큰 블록은 전파가 느려 슬롯을 놓치거나 리오그가 일어날 위험을 높이고, 공격자가 네트워크에 부담을 주려고 일부러 그런 블록을 만들 수도 있습니다.\n\n숨은 불일치도 있었습니다. 컨센서스 레이어의 가십 프로토콜은 10 MiB보다 큰 메시지를 전파하지 않습니다. 실행 블록 때문에 비콘 블록이 그 크기를 넘으면, 규칙상으로는 유효하지만 네트워크에 퍼지지 않아 네트워크가 분열될 수 있습니다.\n\nEIP-7934는 바이트 한도를 명시적인 유효성 규칙으로 만들어, 실행 레이어와 컨센서스 레이어가 유효한 블록이 무엇인지에 대해 합의하게 합니다.\n\n## 어떻게 동작하나요?\n\n세 가지 상수가 정의됩니다.\n\n| 상수 | 값 |\n| --- | --- |\n| `MAX_BLOCK_SIZE` | 10 MiB(10,485,760바이트) |\n| `SAFETY_MARGIN` | 2 MiB(2,097,152바이트) |\n| `MAX_RLP_BLOCK_SIZE` | `MAX_BLOCK_SIZE - SAFETY_MARGIN` = 8 MiB(8,388,608바이트) |\n\n- **블록 생성:** 생성자는 RLP 인코딩이 `MAX_RLP_BLOCK_SIZE`를 넘는 블록을 만들어서는 안 됩니다.\n- **블록 검증:** 노드는 그런 블록을 거부해야 합니다.\n\n2 MiB 여유분은 실행 페이로드를 감싸는 비콘 블록의 나머지 부분을 위한 공간이며, 메시지 전체가 10 MiB 가십 한도 아래에 머물도록 합니다. 이 제한은 gas와 별개로 적용되므로 블록은 둘 다 만족해야 합니다.\n\n## 샘플 코드\n\n스펙에 제시된 검사:\n\n```python\nMAX_BLOCK_SIZE = 10_485_760      # 10 MiB\nSAFETY_MARGIN = 2_097_152        # 2 MiB\nMAX_RLP_BLOCK_SIZE = MAX_BLOCK_SIZE - SAFETY_MARGIN  # 8 MiB\n\ndef exceed_max_rlp_block_size(block) -\u003e bool:\n    # True -\u003e the block is invalid and must not be built or accepted\n    return len(rlp.encode(block)) \u003e MAX_RLP_BLOCK_SIZE\n```\n\n트랜잭션을 탐욕적으로 추가하는 빌더는 gas와 함께 누적 크기를 추적할 수 있습니다.\n\n```python\nsize = len(rlp.encode(header_and_empty_body))\nfor tx in candidates:\n    tx_size = len(tx.encoded)\n    if gas_used + tx.gas \u003e gas_limit or size + tx_size \u003e MAX_RLP_BLOCK_SIZE:\n        continue\n    include(tx); gas_used += tx.gas; size += tx_size\n```\n\n(RLP 리스트 헤더가 조금씩 커지기 때문에 크기 추정은 근사치입니다. 최종 검사는 실제 인코딩에 대해 해야 합니다.)\n\n## 알아둘 점\n\n- 상태는 Final이며, Fusaka(Osaka) 업그레이드의 일부였습니다.\n- 제목에는 10 MiB가 언급되지만, RLP 인코딩된 실행 블록의 실질적인 한도는 **8 MiB**입니다.\n- 이 상한은 RLP 인코딩된 실행 블록을 기준으로 합니다. blob 데이터는 별도로 전달되므로([EIP-4844](/eip-4844/) 참고) 이 크기에 포함되지 않습니다.\n- 일반 사용자는 영향을 받지 않습니다. 정상적인 블록은 한도보다 훨씬 작습니다. 주로 블록 빌더와, 비정상적으로 데이터가 많은 트랜잭션을 만드는 사람에게 의미가 있습니다.\n- [EIP-7825](/eip-7825/)의 트랜잭션별 gas 한도나 [EIP-7623](/eip-7623/)의 더 높은 calldata 가격 책정처럼, 최악의 경우의 블록을 제한하는 다른 조치들을 보완합니다.\n"},"zh":{"lang":"zh","tldr":"把执行区块 RLP 编码后的大小上限定为 8 MiB（10 MiB 的上限减去为信标区块预留的 2 MiB 余量），这样超大区块会直接判定为无效，而不是悄无声息地无法传播。","tags":["block-size","networking","dos","core","fusaka"],"related":[7825,7623,4844],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-7934/","markdown":"## 它解决什么问题？\n\n以太坊用 gas 而不是字节数来限制区块。有些数据按 gas 算很便宜，但字节数很大，所以一个在 gas 上限之内的区块仍可能非常大。非常大的区块传播缓慢，会增加错过 slot 和重组的风险，攻击者也可能故意构造这类区块来给网络施压。\n\n还有一个隐藏的不匹配：共识层的 gossip 协议不会传播大于 10 MiB 的消息。如果执行区块使信标区块超过这个大小，按规则它是有效的，却无法在网络中扩散，这可能导致网络分裂。\n\nEIP-7934 把字节数上限变成一条明确的有效性规则，使执行层和共识层对什么是有效区块达成一致。\n\n## 它如何运作\n\n定义了三个常量：\n\n| 常量 | 值 |\n| --- | --- |\n| `MAX_BLOCK_SIZE` | 10 MiB（10,485,760 字节） |\n| `SAFETY_MARGIN` | 2 MiB（2,097,152 字节） |\n| `MAX_RLP_BLOCK_SIZE` | `MAX_BLOCK_SIZE - SAFETY_MARGIN` = 8 MiB（8,388,608 字节） |\n\n- **区块构建：** 出块者不得创建 RLP 编码超过 `MAX_RLP_BLOCK_SIZE` 的区块。\n- **区块验证：** 节点必须拒绝任何此类区块。\n\n2 MiB 的余量为包裹执行 payload 的信标区块的其余部分留出空间，使整条消息保持在 10 MiB 的 gossip 上限之内。该限制独立于 gas 适用：区块必须同时满足两者。\n\n## 示例代码\n\n规范中给出的检查：\n\n```python\nMAX_BLOCK_SIZE = 10_485_760      # 10 MiB\nSAFETY_MARGIN = 2_097_152        # 2 MiB\nMAX_RLP_BLOCK_SIZE = MAX_BLOCK_SIZE - SAFETY_MARGIN  # 8 MiB\n\ndef exceed_max_rlp_block_size(block) -\u003e bool:\n    # True -\u003e the block is invalid and must not be built or accepted\n    return len(rlp.encode(block)) \u003e MAX_RLP_BLOCK_SIZE\n```\n\n贪心地添加交易的构建者可能会在跟踪 gas 的同时跟踪当前累计大小：\n\n```python\nsize = len(rlp.encode(header_and_empty_body))\nfor tx in candidates:\n    tx_size = len(tx.encoded)\n    if gas_used + tx.gas \u003e gas_limit or size + tx_size \u003e MAX_RLP_BLOCK_SIZE:\n        continue\n    include(tx); gas_used += tx.gas; size += tx_size\n```\n\n（大小估算只是近似值，因为 RLP 列表头会略微变大；最终检查必须针对真实的编码结果。）\n\n## 需要注意\n\n- 状态为 Final；它是 Fusaka（Osaka）升级的一部分。\n- 尽管标题提到 10 MiB，但 RLP 编码的执行区块的实际上限是 **8 MiB**。\n- 该上限计算的是 RLP 编码的执行区块。blob 数据单独携带（参见 [EIP-4844](/eip-4844/)），不计入这个大小。\n- 普通用户不受影响；正常区块远低于该上限。它主要对区块构建者，以及构造数据量异常大的交易的人有意义。\n- 它与其他限制最坏情况区块的措施互为补充，例如 [EIP-7825](/eip-7825/) 的单笔交易 gas 上限和 [EIP-7623](/eip-7623/) 更高的 calldata 定价。\n"}},"requiredBy":[7607]}
