Ethereum Gears Up for Significant Gas Repricing to Enhance Scalability and Network Health

Ethereum is on the cusp of implementing a substantial overhaul of its gas pricing mechanism, a critical step designed to recalibrate the cost of creating and accessing state within the network. This initiative, driven by two key Ethereum Improvement Proposals (EIPs) – EIP-8037 and EIP-8038 – aims to ensure that gas prices more accurately reflect…

 Avatar

by

6 minutes

Read Time

Ethereum is on the cusp of implementing a substantial overhaul of its gas pricing mechanism, a critical step designed to recalibrate the cost of creating and accessing state within the network. This initiative, driven by two key Ethereum Improvement Proposals (EIPs) – EIP-8037 and EIP-8038 – aims to ensure that gas prices more accurately reflect the computational resources and work required for each operation. The adjustments are seen as a fundamental prerequisite for future increases in Ethereum’s block gas limit, which directly impacts the network’s overall transaction throughput.

Background: A Necessary Evolution for a Growing Network

The current gas pricing structure for state operations was last updated during the Berlin hard fork in April 2021. Since that adjustment, the Ethereum network has experienced a dramatic surge in its state size. This exponential growth, coupled with recent increases in the block gas limit, has amplified the disparity between the actual cost of operations and the gas fees users pay. Consequently, the network faces a growing challenge in maintaining optimal performance and scalability.

The decision to reprice these operations stems from a need to align costs with real-world resource consumption. This recalibration is not merely an incremental change; it is a foundational element for enabling further scaling initiatives. The newly proposed gas pricing schedule is meticulously derived from a performance target designed to support an approximate threefold increase in the network’s base transaction throughput. This ambitious goal underscores Ethereum’s commitment to evolving and adapting to the increasing demands placed upon it by a burgeoning decentralized ecosystem.

The Evolving Gas Landscape: EIP-8037 and EIP-8038

EIP-8037, titled "State Creation Gas Cost Increase," focuses on adjusting the gas costs associated with creating new state entries on the Ethereum blockchain. When new data is added or new smart contract states are initialized, the network expends computational resources. This EIP seeks to ensure that the gas paid for these creation operations adequately compensates for the underlying work.

Complementing this, EIP-8038, "State Access Gas Cost Update," addresses the costs associated with accessing existing state data. As the Ethereum state grows, retrieving information becomes more computationally intensive. This EIP aims to reflect this increased access cost in the gas fees, ensuring that transactions that read from or interact with larger or more complex state segments are priced accordingly. Together, these two EIPs form a comprehensive strategy to modernize Ethereum’s gas economics.

Impact Analysis: Navigating the Shift in Transaction Costs

To understand the practical ramifications of these proposed changes, a thorough analysis of historical mainnet transactions has been conducted. By replaying these past transactions under the new pricing schedule, researchers have identified four primary outcomes:

  • No significant change: A substantial portion of transactions are expected to experience minimal to no change in their gas costs. These are typically operations with relatively low state interaction or those that already operate within efficient gas parameters.
  • Slight increase in gas costs: Some transactions, particularly those involving moderate state access or creation, may see a modest uptick in their gas expenditure. This increase is designed to better reflect the underlying computational effort.
  • Significant increase in gas costs: A smaller subset of transactions, likely those interacting heavily with complex state or involving intricate state creation processes, could face a more substantial rise in gas costs. This category highlights areas where the previous pricing was demonstrably misaligned with actual resource usage.
  • Transactions may fail: The most critical category involves contracts that may cease to function as intended. This outcome is primarily anticipated for contracts that have relied on hardcoded gas assumptions. Such assumptions include fixed stipends like the 2,300 gas limit for Solidity’s transfer() and send() functions, hardcoded gas values within internal calls, logic that dynamically branches based on the gasleft() opcode, or presigned transactions with fixed gas limits that are no longer sufficient.

The development team has acknowledged that contracts falling into the "transactions may fail" category are of immediate concern. Direct outreach to the developers and maintainers of these potentially affected contracts is already underway to provide advance notice and support.

Actionable Steps for Stakeholders

The implications of this gas repricing extend across various segments of the Ethereum ecosystem, necessitating proactive measures from different stakeholders.

For Layer 1 (L1) Contract Maintainers:
Developers and maintainers of L1 smart contracts are strongly encouraged to assess their contract’s vulnerability to these changes. A dedicated tool has been made available on GitHub (https://ethereum.github.io/repricing-impact/affected-contracts.html?schedule=eip-8038) where contract addresses can be queried. This tool provides detailed insights into potential failure modes and the specific repricing adjustments driving any identified issues. This proactive auditing is crucial to prevent unexpected service disruptions upon the network’s activation of the new pricing.

For Wallet, RPC Infrastructure, and Node Tooling Developers:
The rollout of the new gas pricing necessitates updates to gas estimation logic within wallets, RPC providers, and node client software. Tools that rely on eth_estimateGas and related functionalities will need to be adapted to account for the revised cost rules. Failure to do so could lead to underestimated gas costs, resulting in transaction failures for users interacting with these outdated systems. Maintaining accurate gas estimations is paramount for a seamless user experience.

For Regular Users:
End-users of Ethereum are generally not expected to take any direct action. The responsibility for implementing these changes will fall on the developers of the wallets, exchanges, and decentralized applications they interact with. As long as users are utilizing up-to-date software and infrastructure, these gas repricing adjustments should be handled transparently and automatically.

A comprehensive report detailing the most affected entities within the ecosystem has also been compiled (https://ethereum.github.io/repricing-impact/entity-report.html?schedule=eip-8038), and targeted communication efforts are being extended to these key players.

Timeline and Outlook: Paving the Way for Future Scaling

The proposed gas repricing mechanism is currently being tested on Ethereum’s development networks (devnets). This intensive testing phase is crucial for identifying any unforeseen issues and fine-tuning the implementation before it is introduced to public testnets. Following a successful period on testnets, the changes are slated for activation on the Ethereum mainnet.

The overarching goal of this initiative is to ensure the long-term scalability and health of the Ethereum network. By ensuring that gas costs accurately reflect the real resource expenditure of operations, the network can safely increase its block gas limit. This, in turn, allows for a higher volume of transactions to be processed per block, thereby enhancing overall network throughput without compromising stability or increasing the burden on node operators.

This strategic adjustment is part of Ethereum’s continuous effort to evolve and adapt. Previous upgrades, such as the Berlin hard fork, have laid the groundwork for such enhancements. This current repricing is a logical progression, building upon past developments to meet the network’s growing demands.

Community engagement remains a cornerstone of Ethereum’s development process. Developers and interested parties are encouraged to participate in discussions on the Ethereum R&D Discord server, specifically within the evm-pricing channel, or the associated Telegram group. Furthermore, for those closely following the protocol roadmap, engaging with the AllCoreDevs (ACD) process and the discussion threads for EIP-8037 and EIP-8037 on Ethereum Magicians is highly recommended. Questions and feedback are welcomed throughout these channels, fostering a collaborative environment for the advancement of the Ethereum protocol.

About the Author

About the Author

Easy WordPress Websites Builder: Versatile Demos for Blogs, News, eCommerce and More – One-Click Import, No Coding! 1000+ Ready-made Templates for Stunning Newspaper, Magazine, Blog, and Publishing Websites.

BlockSpare — News, Magazine and Blog Addons for (Gutenberg) Block Editor

Search the Archives

Access over the years of investigative journalism and breaking reports