Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add EIP: General Repricing #9454

Open
wants to merge 53 commits into
base: master
Choose a base branch
from
Open

Conversation

JacekGlen
Copy link

ATTENTION: ERC-RELATED PULL REQUESTS NOW OCCUR IN ETHEREUM/ERCS

--

When opening a pull request to submit a new EIP, please use the suggested template: https://github.com/ethereum/EIPs/blob/master/eip-template.md

We have a GitHub bot that automatically merges some PRs. It will merge yours immediately if certain criteria are met:

  • The PR edits only existing draft PRs.
  • The build passes.
  • Your GitHub username or email address is listed in the 'author' header of all affected PRs, inside .
  • If matching on email address, the email address is the one publicly listed on your GitHub profile.

@JacekGlen JacekGlen changed the title Website: Gas Cost Repricing to reflect computational complexity Add EIP: Gas Cost Repricing to reflect computational complexity Mar 5, 2025
@github-actions github-actions bot added w-ci Waiting on CI to pass and removed w-ci Waiting on CI to pass labels Mar 5, 2025
@JacekGlen JacekGlen marked this pull request as ready for review March 5, 2025 12:58
@JacekGlen JacekGlen requested a review from eth-bot as a code owner March 5, 2025 12:58
@eth-bot eth-bot changed the title Add EIP: Gas Cost Repricing to reflect computational complexity Website: Gas Cost Repricing to reflect computational complexity Mar 5, 2025
@JacekGlen JacekGlen changed the title Website: Gas Cost Repricing to reflect computational complexity Add EIP: Gas Cost Repricing to reflect computational complexity Mar 5, 2025
@eth-bot eth-bot changed the title Add EIP: Gas Cost Repricing to reflect computational complexity Website: Gas Cost Repricing to reflect computational complexity Mar 6, 2025
@github-actions github-actions bot removed the w-ci Waiting on CI to pass label Mar 6, 2025
@JacekGlen JacekGlen changed the title Website: Gas Cost Repricing to reflect computational complexity Add EIP: Gas Cost Repricing to reflect computational complexity Mar 6, 2025
@github-actions github-actions bot added the w-ci Waiting on CI to pass label Mar 6, 2025
@eth-bot eth-bot changed the title Add EIP: Gas Cost Repricing to reflect computational complexity Website: Gas Cost Repricing to reflect computational complexity Mar 6, 2025
@github-actions github-actions bot removed the w-ci Waiting on CI to pass label Mar 6, 2025
Copy link

github-actions bot commented Mar 6, 2025

The commit 1d01d09 (as a parent of 6524dfe) contains errors.
Please inspect the Run Summary for details.

@github-actions github-actions bot added the w-ci Waiting on CI to pass label Mar 6, 2025
@eth-bot eth-bot changed the title Website: Gas Cost Repricing to reflect computational complexity Add EIP: General Repricing Mar 6, 2025
@github-actions github-actions bot removed the w-ci Waiting on CI to pass label Mar 6, 2025
EIPS/eip-7901.md Outdated
Comment on lines 21 to 56
## Motivation

Gas costs compromise of two components: network (social) cost and computation cost.
Network cost reflects the blockchain’s effort to maintain state,
including adding transactions, storage, logs, calldata, and receipts,
while computation cost represents the non-durable processing effort of smart contracts.

While several EIPs (e.g., [EIP-160](eip-160.md), [EIP-1884](eip-1884.md))
have refined network-related gas costs,
computational costs have remained largely static since Ethereum’s inception.
With multiple EVM implementations now stable and optimized,
alongside advanced tools,
we can assess how well the current gas schedule
aligns with hardware workload profiles.

Measurements and estimations depend on various factors,
including hardware, OS, virtualization,
compiler, memory management, EVM, and more.
The execution of a single opcode impacts or depends on caching,
block preparation, block finalization, garbage collectors,
code analysis, parsing etc.
Consequently, the individual computational cost is
a sum of multiple factors spread over the software stack.
Despite this complexity,
examinations have shown that the computational cost outline is consistent
across EVM implementations, technology stacks, and contexts.

For instance, experimental data might reveal that the computational effort required
to execute one opcode is consistently twice
that of another opcode across most EVM implementations.
In such cases, the gas cost ratio between these opcodes should be set at 2:1
to reflect their relative computational complexity.
This approach relies on empirical measurements
rather than theoretical assumptions.
The gas cost schedule should, therefore,
accurately reflect computational complexity.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The motivation might benefit from a clearer statement of the specific problem being solved (e.g., 'We need to rebalance the gas cost schedule because...')

@Feroslav268
Copy link

Hoj

JacekGlen and others added 3 commits March 8, 2025 07:48
Co-authored-by: Mercy Boma Naps Nkari <[email protected]>
Co-authored-by: Mercy Boma Naps Nkari <[email protected]>
Co-authored-by: Mercy Boma Naps Nkari <[email protected]>
@Feroslav268
Copy link

@Feroslav268

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c-new Creates a brand new proposal e-consensus Waiting on editor consensus e-review Waiting on editor to review s-draft This EIP is a Draft t-core
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants