-
Notifications
You must be signed in to change notification settings - Fork 306
-
Notifications
You must be signed in to change notification settings - Fork 306
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
Calculate refunds on VM side #413
Comments
daytona depends on this. |
Nowadays refunds depend on information only known by the Host when the EVM calls |
We are providing a lot of information about the SSTORE status to allow proper gas counting inside VM: https://github.com/ethereum/evmc/blob/master/include/evmc/evmc.h#L510-L536. There may be cases not handled by this where gas cost is the same but the refund is different, but I don't think we need very different mechanism to handle it fully. |
It should be VM's responsibility to calculate and aggregate refunds.
evmc_result
.The text was updated successfully, but these errors were encountered: