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

Implement updated gas fee algorithm #4

Closed
Tracked by #279
arhag opened this issue Jan 23, 2024 · 0 comments · Fixed by #5
Closed
Tracked by #279

Implement updated gas fee algorithm #4

arhag opened this issue Jan 23, 2024 · 0 comments · Fixed by #5
Assignees

Comments

@arhag
Copy link
Member

arhag commented Jan 23, 2024

  • Add some member to ExecutionState class to pass extra instruction cost information to evmc.
    • Initially, set the value to null or default value.
  • Use the newly added member of ExecutionState to control cost of creating new accounts (directly by transaction or by opcodes CALL or SELFDESTRUCT), contracts (directly by transaction or by opcodes CREATE or CREATE2), and storage slots (by opcode SSTORE).
  • Make sure the vm works just like before with null or default values.
  • Make sure this feature is under control of evmc version as well. i.e. The new logic should have no effect for whatever input if the block has not reached targeted revision.

Note: this may require evmc updates as well, but we will contain the scope of that within this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

4 participants