Add EIP: Increase Maximum Contract Size to 64KiB#11462
Open
Giulio2002 wants to merge 9 commits intoethereum:masterfrom
Open
Add EIP: Increase Maximum Contract Size to 64KiB#11462Giulio2002 wants to merge 9 commits intoethereum:masterfrom
Giulio2002 wants to merge 9 commits intoethereum:masterfrom
Conversation
Collaborator
File
|
Assumes EIP-7954 is merged. Beyond the 32KiB threshold: - Standard region (0-32KiB): 200 gas/byte (unchanged) - Extended region (32-64KiB): 500 gas/byte (per EIP-2926) - Max deploy cost: ~23M gas for 64KiB contract - Initcode limit: 128KiB (2:1 ratio preserved)
Extended region surcharge is per 31-byte chunk, not per byte: - Standard deposit (200/byte) applies to ALL code - Beyond 32KiB: additional ceil((N-32768)/31) * 500 surcharge - 64KiB deploy: ~13.6M gas (6.5M standard + 529K chunk surcharge) - Constants from EIP-2926: CHUNK_SIZE=31, 500 gas/chunk
Contributor
|
Wait. It was already agreed to bump to Glamsterdam to 32KBs (basically relying on the data I provided and presented in https://ethresear.ch/t/data-driven-analysis-on-eip-7907/23850 and in ACD). So as from Glamsterdam, the "baseline" is 32kBs. Wasn't at the end your EIP the one that was included directly? |
|
The commit dfb002d (as a parent of 2fe18b1) contains errors. |
|
big |
abcoathup
reviewed
Mar 30, 2026
abcoathup
reviewed
Mar 30, 2026
Co-authored-by: Andrew B Coathup <28278242+abcoathup@users.noreply.github.com>
Co-authored-by: Andrew B Coathup <28278242+abcoathup@users.noreply.github.com>
Contributor
Author
that's what she said |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Proposes raising the maximum contract code size from 24KiB to 64KiB and the initcode size from 48KiB to 128KiB.
0x6000) → 64KiB (0x10000)0xC000) → 128KiB (0x20000)The 64KiB boundary (2^16) is a natural power-of-two that aligns with common memory page sizes. The economic cost of deploying larger contracts scales proportionally via calldata and initcode word costs, acting as a natural deterrent against abuse.
Modifies: EIP-170, EIP-3860