{"eip":3756,"title":"Gas Limit Cap","description":"Set an in-protocol cap for the gas limit","authors":["lightclient (@lightclient)"],"status":"Stagnant","type":"Standards Track","category":"Core","created":"2021-08-21","discussionsTo":"https://ethereum-magicians.org/t/eip-3756-gas-limit-cap/6921","repo":"EIPs","label":"EIP-3756","officialUrl":"https://eips.ethereum.org/EIPS/eip-3756","sourceUrl":"https://github.com/ethereum/EIPs/blob/master/EIPS/eip-3756.md","url":"https://eips.huatuo.xyz/eip-3756/","tldr":{"en":"A proposed hard cap of 30 million gas per block, so that block producers could lower the gas limit but never raise it past a value set through the EIP process.","ja":"ブロックあたり 3,000 万ガスという上限を設ける提案。ブロックプロデューサーはガスリミットを下げることはできても、EIP プロセスを通じて決められた値を超えて上げることはできなくなる。","ko":"블록당 가스 3,000만이라는 상한을 두자는 제안. 블록 생산자는 가스 한도를 낮출 수는 있지만 EIP 절차를 통해 정해진 값 이상으로 올릴 수는 없게 된다.","zh":"提议为每个区块设置 3000 万 gas 的硬性上限，使区块生产者可以调低 gas 上限，但永远不能把它调高到通过 EIP 流程设定的值之上。"},"tags":["gas","gas-limit","core","consensus","security"],"explainers":{"en":{"lang":"en","tldr":"A proposed hard cap of 30 million gas per block, so that block producers could lower the gas limit but never raise it past a value set through the EIP process.","tags":["gas","gas-limit","core","consensus","security"],"related":[1559,7935,7825],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-3756/","markdown":"## What problem does it solve?\n\nOn Ethereum the block gas limit is not set by a hard fork. Block producers vote it up or down a little with every block they produce, so in principle they can push it as high as they like without going through an EIP or All Core Devs.\n\nThe author points to two risks with that:\n\n- **Benign growth.** A higher gas limit makes state and history grow faster than nodes may be able to sustain.\n- **Attacks.** Some denial-of-service attacks do more damage when a block can hold more gas.\n\nEIP-3756 would make the upper limit a protocol rule. Raising it would then need a hard fork, so it would be decided in the open.\n\n## How it works\n\nThe specification is a single rule. From the fork block onward, any block with `gas_limit` greater than `30,000,000` is **invalid**.\n\nProposers keep the power to *lower* the gas limit. The rationale treats this as an important safety lever: if the network becomes unstable or is under attack, proposers can shrink blocks quickly without waiting for a fork. The cap is only a ceiling, not a fixed gas limit.\n\nNothing else changes. The existing rule that limits how far the gas limit may move from one block to the next still applies, and so does the [EIP-1559](/eip-1559/) gas target, which is half the limit.\n\n## Sample code\n\nThe extra validity check a client would add, in pseudocode:\n\n```python\nGAS_LIMIT_CAP = 30_000_000\n\ndef validate_header(header, parent, fork_block):\n    # existing checks: gas limit may move only ~1/1024 per block, etc.\n    validate_gas_limit_delta(header.gas_limit, parent.gas_limit)\n\n    if header.number \u003e= fork_block and header.gas_limit \u003e GAS_LIMIT_CAP:\n        raise InvalidBlock(\"gas_limit above protocol cap\")\n```\n\nChecking the current limit against the proposed cap (ethers v6):\n\n```ts\nimport { JsonRpcProvider } from \"ethers\";\n\nconst provider = new JsonRpcProvider(process.env.RPC_URL);\nconst block = await provider.getBlock(\"latest\");\nconst CAP = 30_000_000n;\nconsole.log(\"gas limit:\", block!.gasLimit.toString(),\n            block!.gasLimit \u003e CAP ? \"(above the EIP-3756 cap)\" : \"(within the cap)\");\n```\n\n## Things to know\n\n- **Status: Stagnant.** EIP-3756 was never scheduled for a network upgrade, and Ethereum has no in-protocol gas limit cap.\n- The spec leaves test cases \"TBD\" and names no fork block.\n- The 30M figure was mainnet's gas limit when the EIP was written. Validators have since raised the limit above it. [EIP-7935](/eip-7935/) proposes a new default for clients (60M), which shows the direction has been to raise the limit by coordination, not to fix a ceiling.\n- Do not confuse this with [EIP-7825](/eip-7825/), which caps the gas a single *transaction* may use. EIP-3756 caps the whole *block*.\n"},"ja":{"lang":"ja","tldr":"ブロックあたり 3,000 万ガスという上限を設ける提案。ブロックプロデューサーはガスリミットを下げることはできても、EIP プロセスを通じて決められた値を超えて上げることはできなくなる。","tags":["gas","gas-limit","core","consensus","security"],"related":[1559,7935,7825],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-3756/","markdown":"## 何を解決するのか\n\nEthereum では、ブロックのガスリミットはハードフォークでは設定されません。ブロックプロデューサーが、生成するブロックごとに少しずつ上げ下げの投票をするため、原則として、EIP や All Core Devs を経ずに、好きなだけ高くできます。\n\n著者は、これに 2 つのリスクがあると指摘しています。\n\n- **良性の成長。** ガスリミットが高くなると、ステートと履歴が、ノードが維持できる速度を超えて増えるおそれがあります。\n- **攻撃。** ブロックがより多くのガスを収容できると、被害が大きくなるサービス拒否攻撃があります。\n\nEIP-3756 は、上限をプロトコルのルールにします。そうすれば、それを引き上げるにはハードフォークが必要になり、公開の場で決められることになります。\n\n## 仕組み\n\n仕様は 1 つのルールだけです。フォークブロック以降、`gas_limit` が `30,000,000` を超えるブロックは**無効**です。\n\nプロポーザーは、ガスリミットを*下げる*権限を保持します。根拠では、これを重要な安全レバーと位置付けています。ネットワークが不安定になったり攻撃を受けたりした場合、プロポーザーはフォークを待たずに、すぐにブロックを小さくできます。上限はあくまで天井であり、固定のガスリミットではありません。\n\nほかには何も変わりません。ガスリミットが 1 ブロックから次のブロックへ動ける幅を制限する既存のルールは引き続き適用され、リミットの半分である [EIP-1559](/eip-1559/) のガスターゲットも同様です。\n\n## サンプルコード\n\nクライアントが追加する、有効性チェックの擬似コード:\n\n```python\nGAS_LIMIT_CAP = 30_000_000\n\ndef validate_header(header, parent, fork_block):\n    # existing checks: gas limit may move only ~1/1024 per block, etc.\n    validate_gas_limit_delta(header.gas_limit, parent.gas_limit)\n\n    if header.number \u003e= fork_block and header.gas_limit \u003e GAS_LIMIT_CAP:\n        raise InvalidBlock(\"gas_limit above protocol cap\")\n```\n\n現在のリミットを、提案された上限と照合する（ethers v6）:\n\n```ts\nimport { JsonRpcProvider } from \"ethers\";\n\nconst provider = new JsonRpcProvider(process.env.RPC_URL);\nconst block = await provider.getBlock(\"latest\");\nconst CAP = 30_000_000n;\nconsole.log(\"gas limit:\", block!.gasLimit.toString(),\n            block!.gasLimit \u003e CAP ? \"(above the EIP-3756 cap)\" : \"(within the cap)\");\n```\n\n## 知っておくべきこと\n\n- **ステータス: Stagnant。** EIP-3756 は、ネットワークアップグレードに予定されたことがなく、Ethereum にはプロトコル内のガスリミット上限はありません。\n- 仕様は、テストケースを「TBD」のままにしており、フォークブロックも指定していません。\n- 3000 万という数字は、この EIP が書かれたときのメインネットのガスリミットでした。その後、バリデーターはリミットをそれより上に引き上げています。[EIP-7935](/eip-7935/) はクライアントの新しいデフォルト（6000 万）を提案しており、これは、天井を固定するのではなく、調整によってリミットを引き上げる方向に進んできたことを示しています。\n- 1 つの*トランザクション*が使えるガスに上限を設ける [EIP-7825](/eip-7825/) と混同しないでください。EIP-3756 が上限を設けるのは、*ブロック*全体です。\n"},"ko":{"lang":"ko","tldr":"블록당 가스 3,000만이라는 상한을 두자는 제안. 블록 생산자는 가스 한도를 낮출 수는 있지만 EIP 절차를 통해 정해진 값 이상으로 올릴 수는 없게 된다.","tags":["gas","gas-limit","core","consensus","security"],"related":[1559,7935,7825],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-3756/","markdown":"## 어떤 문제를 해결하나요?\n\n이더리움에서 블록 가스 한도는 하드 포크로 정해지지 않습니다. 블록 생산자가 블록을 만들 때마다 조금씩 올리거나 내리는 투표를 하므로, 원칙적으로는 EIP나 All Core Devs를 거치지 않고도 원하는 만큼 높일 수 있습니다.\n\n저자는 여기에 두 가지 위험이 있다고 지적합니다.\n\n- **양성 성장.** 가스 한도가 높아지면 상태와 이력이 노드가 감당할 수 있는 것보다 빠르게 커질 수 있습니다.\n- **공격.** 블록이 더 많은 가스를 담을 수 있으면 피해가 더 커지는 서비스 거부 공격이 있습니다.\n\nEIP-3756은 상한을 프로토콜 규칙으로 만듭니다. 그러면 이를 올리려면 하드 포크가 필요하므로 공개적으로 결정됩니다.\n\n## 어떻게 동작하나요?\n\n명세는 규칙 하나뿐입니다. 포크 블록부터 `gas_limit`이 `30,000,000`보다 큰 블록은 **무효**입니다.\n\n제안자는 가스 한도를 *낮출* 권한을 유지합니다. 근거 설명은 이를 중요한 안전 레버로 봅니다. 네트워크가 불안정해지거나 공격을 받으면 제안자는 포크를 기다리지 않고 블록을 빠르게 줄일 수 있습니다. 이 상한은 천장일 뿐 고정된 가스 한도가 아닙니다.\n\n그 외에는 아무것도 바뀌지 않습니다. 가스 한도가 한 블록에서 다음 블록으로 움직일 수 있는 폭을 제한하는 기존 규칙은 그대로 적용되며, 한도의 절반인 [EIP-1559](/eip-1559/)의 가스 목표도 마찬가지입니다.\n\n## 샘플 코드\n\n클라이언트가 추가할 유효성 검사를 의사 코드로 나타냅니다.\n\n```python\nGAS_LIMIT_CAP = 30_000_000\n\ndef validate_header(header, parent, fork_block):\n    # existing checks: gas limit may move only ~1/1024 per block, etc.\n    validate_gas_limit_delta(header.gas_limit, parent.gas_limit)\n\n    if header.number \u003e= fork_block and header.gas_limit \u003e GAS_LIMIT_CAP:\n        raise InvalidBlock(\"gas_limit above protocol cap\")\n```\n\n현재 한도를 제안된 상한과 비교하기(ethers v6):\n\n```ts\nimport { JsonRpcProvider } from \"ethers\";\n\nconst provider = new JsonRpcProvider(process.env.RPC_URL);\nconst block = await provider.getBlock(\"latest\");\nconst CAP = 30_000_000n;\nconsole.log(\"gas limit:\", block!.gasLimit.toString(),\n            block!.gasLimit \u003e CAP ? \"(above the EIP-3756 cap)\" : \"(within the cap)\");\n```\n\n## 알아둘 점\n\n- **상태: Stagnant.** EIP-3756은 네트워크 업그레이드에 예정된 적이 없으며, 이더리움에는 프로토콜 내 가스 한도 상한이 없습니다.\n- 명세는 테스트 케이스를 \"TBD\"로 남겼고 포크 블록도 지정하지 않았습니다.\n- 3,000만이라는 수치는 이 EIP가 작성될 때 메인넷의 가스 한도였습니다. 이후 검증자들은 한도를 그 위로 올렸습니다. [EIP-7935](/eip-7935/)는 클라이언트의 새 기본값(6,000만)을 제안하는데, 이는 천장을 고정하는 것이 아니라 조율을 통해 한도를 올리는 방향으로 흘러왔음을 보여 줍니다.\n- 단일 *트랜잭션*이 쓸 수 있는 가스에 상한을 두는 [EIP-7825](/eip-7825/)와 혼동하지 마세요. EIP-3756은 *블록* 전체에 상한을 둡니다.\n"},"zh":{"lang":"zh","tldr":"提议为每个区块设置 3000 万 gas 的硬性上限，使区块生产者可以调低 gas 上限，但永远不能把它调高到通过 EIP 流程设定的值之上。","tags":["gas","gas-limit","core","consensus","security"],"related":[1559,7935,7825],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-3756/","markdown":"## 它解决什么问题？\n\n在以太坊上，区块 gas 上限不是由硬分叉设定的。区块生产者在生产每个区块时都会对它投票上调或下调一点，因此原则上他们可以把它推到任意高度，而无需经过 EIP 或 All Core Devs。\n\n作者指出这有两个风险：\n\n- **良性增长。** 更高的 gas 上限会让状态和历史增长得比节点所能承受的更快。\n- **攻击。** 当区块能容纳更多 gas 时，某些拒绝服务攻击会造成更大的破坏。\n\nEIP-3756 会让上限成为一条协议规则。这样要提高它就需要一次硬分叉，因此会在公开场合决定。\n\n## 它如何运作\n\n规范只有一条规则。从分叉区块起，任何 `gas_limit` 大于 `30,000,000` 的区块都是**无效**的。\n\n提议者仍保有*调低* gas 上限的权力。其理由说明把这视为一个重要的安全杠杆：如果网络变得不稳定或遭到攻击，提议者可以在不等待分叉的情况下迅速缩小区块。这个上限只是一个天花板，而不是固定的 gas 上限。\n\n其他一切都不变。限制 gas 上限在相邻区块间变动幅度的现有规则依然适用，[EIP-1559](/eip-1559/) 的 gas 目标（为上限的一半）也同样如此。\n\n## 示例代码\n\n客户端会增加的额外有效性检查，以伪代码表示：\n\n```python\nGAS_LIMIT_CAP = 30_000_000\n\ndef validate_header(header, parent, fork_block):\n    # existing checks: gas limit may move only ~1/1024 per block, etc.\n    validate_gas_limit_delta(header.gas_limit, parent.gas_limit)\n\n    if header.number \u003e= fork_block and header.gas_limit \u003e GAS_LIMIT_CAP:\n        raise InvalidBlock(\"gas_limit above protocol cap\")\n```\n\n对照提议的上限检查当前的上限（ethers v6）：\n\n```ts\nimport { JsonRpcProvider } from \"ethers\";\n\nconst provider = new JsonRpcProvider(process.env.RPC_URL);\nconst block = await provider.getBlock(\"latest\");\nconst CAP = 30_000_000n;\nconsole.log(\"gas limit:\", block!.gasLimit.toString(),\n            block!.gasLimit \u003e CAP ? \"(above the EIP-3756 cap)\" : \"(within the cap)\");\n```\n\n## 需要注意\n\n- **状态：Stagnant。** EIP-3756 从未被排入网络升级，以太坊没有协议内的 gas 上限硬顶。\n- 规范把测试用例留作\"TBD\"，也没有指定分叉区块。\n- 3000 万这个数字是撰写该 EIP 时主网的 gas 上限。此后验证者已把上限提高到了它之上。[EIP-7935](/eip-7935/) 提议为客户端设置新的默认值（6000 万），这表明方向一直是通过协调来提高上限，而不是固定一个天花板。\n- 不要把它与 [EIP-7825](/eip-7825/) 混淆，后者限制的是单笔*交易*可使用的 gas。EIP-3756 限制的是整个*区块*。\n"}}}
