-
Notifications
You must be signed in to change notification settings - Fork 456
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
Measure execution cost and transaction cost #619
Comments
hm, I would have assumed that Can probably separate intrinsic gas calculation into the standalone function (gas needed before execution) which would solve some things. |
just found an interesting comment on this: https://ethereum.stackexchange.com/a/29560/125158 |
I know about it, this is kinda a ddos protection for txpool (and again checked inside execution) which is a minimal amount of gas that is spent by tx, and of course, the account would need to have enough fee for it. If account does not have enough balance to cover that intrinsic amount tx is considered invalid (and block too). The spec is kinda not updated as it is missing tx access list. In revm it is, in essence, this fn: https://github.com/bluealloy/revm/blob/9afe097881dc06f11075d57b761aceb5fdf18728/crates/interpreter/src/gas/calc.rs#L333C35-L333C35 |
Closing this as intrinsic gas can be fetched by different function |
For the example storage IO contract running in remix, there will be logs about transaction cost and execution cost
However in the gas inspector of revm, we currently only has
used
+memory
https://github.com/bluealloy/revm/blob/main/crates/interpreter/src/gas.rs#L8
The text was updated successfully, but these errors were encountered: