{"eip":3382,"title":"Hardcoded Block Gas Limit","description":"Hardcode the block gas limit to 12,500,000 gas per block.","authors":["Philippe Castonguay (@PhABC)"],"status":"Withdrawn","type":"Standards Track","category":"Core","created":"2021-03-13","discussionsTo":"https://ethereum-magicians.org/t/eip-3382-hardcoded-gas-limit","repo":"EIPs","label":"EIP-3382","officialUrl":"https://eips.ethereum.org/EIPS/eip-3382","sourceUrl":"https://github.com/ethereum/EIPs/blob/master/EIPS/eip-3382.md","url":"https://eips.huatuo.xyz/eip-3382/","tldr":{"en":"A withdrawn proposal to fix the block gas limit at 12.5M by consensus, taking the choice away from block producers; the author later preferred the gas-limit cap in EIP-3756.","ja":"ブロックガスリミットをコンセンサスで 12.5M に固定し、ブロックプロデューサーから選択権を取り上げる、取り下げ（Withdrawn）済みの提案。著者は後に EIP-3756 のガスリミット上限案を支持した。","ko":"블록 가스 한도를 컨센서스로 12.5M에 고정해 블록 생성자에게서 선택권을 빼앗자는 철회(Withdrawn)된 제안. 작성자는 나중에 EIP-3756의 가스 한도 상한 방식을 선호했다.","zh":"一项已撤回的提案：通过共识把区块 gas 上限固定为 12.5M，从区块生产者手中拿走这个选择权；作者后来更倾向于 EIP-3756 中的 gas 上限封顶方案。"},"tags":["gas-limit","consensus","blocks","core","withdrawn"],"explainers":{"en":{"lang":"en","tldr":"A withdrawn proposal to fix the block gas limit at 12.5M by consensus, taking the choice away from block producers; the author later preferred the gas-limit cap in EIP-3756.","tags":["gas-limit","consensus","blocks","core","withdrawn"],"related":[3756,1559,7825],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-3382/","markdown":"## What problem does it solve?\n\nAlmost every Ethereum parameter is fixed by consensus rules that all nodes enforce. The block gas limit is an exception: block producers can nudge it up or down a little every block, so over time they collectively decide how big blocks are.\n\nThe protocol assumes producers are financially rational, not benevolent, yet the gas limit relies on them caring about long-term decentralisation. A sudden large increase (state growth, harder to run a node) or decrease (congestion) could be imposed by a small group. EIP-3382 proposed taking the parameter out of their hands.\n\n## How it works\n\n- From `FORK_BLOCK_NUMBER`, a block is valid only if `header.gasLimit == 12,500,000`.\n- The `gasLimit` field stays in the header to avoid changing the header structure, but it becomes a constant.\n- After [EIP-1559](/eip-1559/), the same rule was to apply to what the spec calls the gas target.\n- 12.5M was simply the gas limit when the EIP was written. Changing it later would require a new EIP and hard fork, like any other consensus parameter.\n\n## Sample code\n\nThe added header-validation rule, as pseudocode:\n\n```python\nBLOCK_GAS_LIMIT = 12_500_000\n\ndef validate_header(header, parent):\n    if header.number \u003e= FORK_BLOCK_NUMBER:\n        if header.gas_limit != BLOCK_GAS_LIMIT:\n            raise InvalidBlock(\"gas limit must equal BLOCK_GAS_LIMIT\")\n    else:\n        validate_gas_limit_adjustment(header, parent)  # legacy ±1/1024 rule\n```\n\n## Things to know\n\n- Status is **Withdrawn**. The author withdrew it in favour of [EIP-3756](/eip-3756/), which caps the gas limit at a maximum instead of fixing an exact value (itself now Stagnant).\n- The spec acknowledges the downside: in an emergency, changing the gas limit would require a hard fork rather than producer coordination.\n- In practice Ethereum kept producer-voted gas limits, and validators have since raised the limit well beyond 12.5M. Per-transaction limits are a separate topic, see [EIP-7825](/eip-7825/).\n"},"ja":{"lang":"ja","tldr":"ブロックガスリミットをコンセンサスで 12.5M に固定し、ブロックプロデューサーから選択権を取り上げる、取り下げ（Withdrawn）済みの提案。著者は後に EIP-3756 のガスリミット上限案を支持した。","tags":["gas-limit","consensus","blocks","core","withdrawn"],"related":[3756,1559,7825],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-3382/","markdown":"## 何を解決するのか\n\nEthereum のほぼすべてのパラメータは、全ノードが強制するコンセンサスルールによって固定されています。ブロックガスリミットは例外で、ブロックプロデューサーはブロックごとにこれを少しずつ上げ下げできるため、時間とともに、ブロックの大きさを全体として決めることになります。\n\nプロトコルはプロデューサーが慈善的ではなく経済的に合理的であると想定していますが、ガスリミットは彼らが長期的な分散性を気にかけることに依存しています。急激な大幅な引き上げ（ステートの増大、ノードの運用が難しくなる）や引き下げ（混雑）が、少数のグループによって課される可能性があります。EIP-3382 は、このパラメータを彼らの手から取り上げることを提案しました。\n\n## 仕組み\n\n- `FORK_BLOCK_NUMBER` 以降、ブロックが有効になるのは `header.gasLimit == 12,500,000` の場合のみです。\n- ヘッダー構造を変えないよう `gasLimit` フィールドはヘッダーに残りますが、定数になります。\n- [EIP-1559](/eip-1559/) 以降は、仕様がガスターゲットと呼ぶものにも同じルールが適用される予定でした。\n- 12.5M は、この EIP が書かれた時点のガスリミットにすぎません。後から変更するには、他のコンセンサスパラメータと同様に、新しい EIP とハードフォークが必要になります。\n\n## サンプルコード\n\n追加されるヘッダー検証ルールの疑似コード:\n\n```python\nBLOCK_GAS_LIMIT = 12_500_000\n\ndef validate_header(header, parent):\n    if header.number \u003e= FORK_BLOCK_NUMBER:\n        if header.gas_limit != BLOCK_GAS_LIMIT:\n            raise InvalidBlock(\"gas limit must equal BLOCK_GAS_LIMIT\")\n    else:\n        validate_gas_limit_adjustment(header, parent)  # legacy ±1/1024 rule\n```\n\n## 知っておくべきこと\n\n- ステータスは **Withdrawn** です。著者は、正確な値を固定するのではなく最大値でガスリミットを制限する [EIP-3756](/eip-3756/) を支持して、これを取り下げました（EIP-3756 自身も現在は Stagnant です）。\n- 仕様は欠点を認めています。緊急時にガスリミットを変更するには、プロデューサー間の調整ではなくハードフォークが必要になります。\n- 実際には、Ethereum はプロデューサーの投票によるガスリミットを維持し、バリデーターはその後、リミットを 12.5M よりはるかに高く引き上げました。トランザクション単位の上限は別の話題で、[EIP-7825](/eip-7825/) を参照してください。\n"},"ko":{"lang":"ko","tldr":"블록 가스 한도를 컨센서스로 12.5M에 고정해 블록 생성자에게서 선택권을 빼앗자는 철회(Withdrawn)된 제안. 작성자는 나중에 EIP-3756의 가스 한도 상한 방식을 선호했다.","tags":["gas-limit","consensus","blocks","core","withdrawn"],"related":[3756,1559,7825],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-3382/","markdown":"## 어떤 문제를 해결하나요?\n\n이더리움의 거의 모든 파라미터는 모든 노드가 강제하는 컨센서스 규칙으로 고정되어 있습니다. 블록 가스 한도는 예외로, 블록 생성자가 블록마다 조금씩 올리거나 내릴 수 있어서 시간이 지나면서 블록 크기를 집단적으로 결정하게 됩니다.\n\n프로토콜은 생성자가 선의가 아니라 경제적으로 합리적이라고 가정하지만, 가스 한도는 그들이 장기적인 탈중앙성을 신경 쓰는 데 의존합니다. 갑작스러운 대폭 인상(상태 증가, 노드 운영이 어려워짐)이나 인하(혼잡)가 소수 집단에 의해 강제될 수 있습니다. EIP-3382는 이 파라미터를 그들의 손에서 빼앗자고 제안했습니다.\n\n## 어떻게 동작하나요?\n\n- `FORK_BLOCK_NUMBER`부터 블록은 `header.gasLimit == 12,500,000`일 때만 유효합니다.\n- 헤더 구조를 바꾸지 않기 위해 `gasLimit` 필드는 헤더에 남지만 상수가 됩니다.\n- [EIP-1559](/eip-1559/) 이후에는 같은 규칙이 명세에서 가스 목표(gas target)라고 부르는 것에도 적용될 예정이었습니다.\n- 12.5M은 이 EIP가 작성될 때의 가스 한도일 뿐입니다. 나중에 바꾸려면 다른 컨센서스 파라미터처럼 새 EIP와 하드포크가 필요합니다.\n\n## 샘플 코드\n\n추가되는 헤더 검증 규칙을 의사 코드로 나타낸 것:\n\n```python\nBLOCK_GAS_LIMIT = 12_500_000\n\ndef validate_header(header, parent):\n    if header.number \u003e= FORK_BLOCK_NUMBER:\n        if header.gas_limit != BLOCK_GAS_LIMIT:\n            raise InvalidBlock(\"gas limit must equal BLOCK_GAS_LIMIT\")\n    else:\n        validate_gas_limit_adjustment(header, parent)  # legacy ±1/1024 rule\n```\n\n## 알아둘 점\n\n- 상태는 **Withdrawn**입니다. 작성자는 정확한 값을 고정하는 대신 가스 한도에 최댓값을 두는 [EIP-3756](/eip-3756/)을 지지하며 이를 철회했습니다(EIP-3756 자체도 지금은 Stagnant입니다).\n- 명세는 단점을 인정합니다. 비상시에 가스 한도를 바꾸려면 생성자 간의 조율이 아니라 하드포크가 필요합니다.\n- 실제로 이더리움은 생성자 투표로 정하는 가스 한도를 유지했고, 검증자들은 이후 한도를 12.5M보다 훨씬 높게 올렸습니다. 트랜잭션별 한도는 별개의 주제이며 [EIP-7825](/eip-7825/)를 참고하세요.\n"},"zh":{"lang":"zh","tldr":"一项已撤回的提案：通过共识把区块 gas 上限固定为 12.5M，从区块生产者手中拿走这个选择权；作者后来更倾向于 EIP-3756 中的 gas 上限封顶方案。","tags":["gas-limit","consensus","blocks","core","withdrawn"],"related":[3756,1559,7825],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-3382/","markdown":"## 它解决什么问题？\n\n以太坊几乎所有参数都由所有节点强制执行的共识规则固定。区块 gas 上限是个例外：区块生产者每个区块都可以小幅上调或下调，所以长期来看，他们集体决定了区块的大小。\n\n协议假定生产者是在经济上理性的，而非善意的，然而 gas 上限却依赖于他们关心长期的去中心化。一次突然的大幅上调（状态增长，运行节点更难）或下调（拥堵）可能由一小群人强加给整个网络。EIP-3382 提议把这个参数从他们手中拿走。\n\n## 它如何运作\n\n- 从 `FORK_BLOCK_NUMBER` 起，只有 `header.gasLimit == 12,500,000` 的区块才有效。\n- `gasLimit` 字段保留在区块头中，以避免改变区块头结构，但它变成了一个常量。\n- 在 [EIP-1559](/eip-1559/) 之后，同样的规则将适用于规范中所说的 gas 目标。\n- 12.5M 只是撰写这份 EIP 时的 gas 上限。以后要改变它，需要像其他共识参数一样，通过新的 EIP 和一次硬分叉。\n\n## 示例代码\n\n新增的区块头验证规则，写成伪代码：\n\n```python\nBLOCK_GAS_LIMIT = 12_500_000\n\ndef validate_header(header, parent):\n    if header.number \u003e= FORK_BLOCK_NUMBER:\n        if header.gas_limit != BLOCK_GAS_LIMIT:\n            raise InvalidBlock(\"gas limit must equal BLOCK_GAS_LIMIT\")\n    else:\n        validate_gas_limit_adjustment(header, parent)  # legacy ±1/1024 rule\n```\n\n## 需要注意\n\n- 状态为 **Withdrawn**。作者撤回了它，转而支持 [EIP-3756](/eip-3756/)，后者是为 gas 上限设定一个最大值，而不是固定一个确切的值（该提案自身现在也处于 Stagnant 状态）。\n- 规范承认其缺点：在紧急情况下，改变 gas 上限需要一次硬分叉，而不是生产者之间的协调。\n- 实际上，以太坊保留了由生产者投票决定的 gas 上限，验证者此后已把上限提高到远超 12.5M。单笔交易的上限是另一个话题，参见 [EIP-7825](/eip-7825/)。\n"}}}
