-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
JacekGlen
wants to merge
53
commits into
ethereum:master
Choose a base branch
from
JacekGlen:repricing
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
+784
−0
Conversation
This file contains 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
Add Motivation paragraph
Reference to EIP -7667
Update rationale
The commit 1d01d09 (as a parent of 6524dfe) contains errors. |
bomanaps
reviewed
Mar 7, 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. |
There was a problem hiding this comment.
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...')
Hoj |
Feroslav268
approved these changes
Mar 8, 2025
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
approved these changes
Mar 10, 2025
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
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.
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: