05-27, 11:00–11:25 (CET), Root
EIP-7907 proposes raising Ethereum’s contract code size limit from 24KB to 256KB by introducing gas metering for larger contracts. This upgrade addresses developer pain from contract fragmentation under EIP-170, while maintaining DoS protection. We outline the metering design, security considerations, and how this change improves contract simplicity and maintainability.
In this talk, we introduce EIP-7907—a candidate for the Ethereum Fusaka upgrade—which proposes raising Ethereum’s contract code size limit from 24KB to 256KB, a >10x increase.
The current 24KB limit (imposed by EIP-170) was designed to prevent DoS attacks, as large contracts incur unbounded resource costs (e.g., disk I/O, VM preprocessing) that aren’t properly accounted for in gas fees. While effective for security, this restriction forces developers to fragment large contracts into smaller pieces, degrading UX and increasing maintenance overhead.
EIP-7907 solves this by introducing gas metering for code sizes beyond 24KB, ensuring deployers and callers pay proportionally for the resources they consume—upholding Ethereum’s "pay-for-what-you-use" gas model. We’ll detail the metering mechanism, explain why 256KB strikes the right balance for security (including p2p-layer considerations), and demonstrate how this change unlocks simpler, more maintainable contract design without reintroducing DoS risks.
-