-
Notifications
You must be signed in to change notification settings - Fork 20.9k
core/vm: implement EIP 7883 - ModExp Gas Cost Increase #31606
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
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.
LGTM
Please rebase. |
f3ba0f7
to
7b6cbde
Compare
@@ -440,6 +453,14 @@ func (c *bigModExp) RequiredGas(input []byte) uint64 { | |||
gas.Rsh(gas, 3) | |||
gas.Mul(gas, gas) | |||
|
|||
var minPrice uint64 = 200 | |||
if c.eip7883 { |
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.
Since this check is within the if c.eip2565
block, the two EIPs are effectively dependent on each other and cannot be toggled separately. Not sure if we need to be able to have them fully separate, but maybe it would be more appropriate to toggle them with a single setting.
https://eips.ethereum.org/EIPS/eip-7883 --------- Co-authored-by: MariusVanDerWijden <[email protected]> Co-authored-by: Felix Lange <[email protected]>
https://eips.ethereum.org/EIPS/eip-7883