-
Notifications
You must be signed in to change notification settings - Fork 450
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
v2 Implement EIP-7623: Increase calldata cost #7859
base: master
Are you sure you want to change the base?
Conversation
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.
Maybe im reading the EIP wrong, but i dont see how this is correct.
The change should just affect intrinsic gas calculation.
long leftBound = (gasTracer.GasSpent != 0 && gasTracer.GasSpent >= staticGas.IntrinsicGas) | ||
? gasTracer.GasSpent - 1 | ||
: intrinsicGas - 1; | ||
long rightBound = (tx.GasLimit != 0 && tx.GasLimit >= intrinsicGas) | ||
: staticGas.IntrinsicGas - 1; | ||
long rightBound = (tx.GasLimit != 0 && tx.GasLimit >= staticGas.IntrinsicGas) | ||
? tx.GasLimit | ||
: header.GasLimit; |
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.
why should only the old calculation be considered here?
If you break the floor price you have to pay it no matter what.
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.
below (line 68, 69) we are checking if the estimate we get is below the floor gas, then we return the floor gas.
Resolves #7527
https://eips.ethereum.org/EIPS/eip-7623
Changes
Types of changes
What types of changes does your code introduce?
Testing
Requires testing
If yes, did you write tests?
Notes on testing
Optional. Remove if not applicable.
Documentation
Requires documentation update
If yes, link the PR to the docs update or the issue with the details labeled
docs
. Remove if not applicable.Requires explanation in Release Notes
If yes, fill in the details here. Remove if not applicable.
Remarks
Optional. Remove if not applicable.