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 witness costs as tracer parameter #320

Closed
wants to merge 1 commit into from

Conversation

gballet
Copy link
Owner

@gballet gballet commented Dec 1, 2023

With verkle, gas consumption extends beyond the naked cost of calling an operation: depending on what areas of memory get touched, there is a potential extra gas charged.

This PR is still in draft, because there are several tweaks that need to be considered: for one, extracting gas data from the witness implies to change the signature of the return function to also include the witness.

It might be easier to change the signature of dynamicGas to accept the pc from the interpreter and just bulk the witness gas with the consumed gas. And we might combine both to report the witness gas while bulking both.

@gballet
Copy link
Owner Author

gballet commented Feb 15, 2024

I won't complete this one, the tracer has been completely rewritten.

@gballet gballet closed this Feb 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant