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

chore: ensure highest gas limit tracks txenv.gaslimit of success #9702

Merged
merged 1 commit into from
Jul 22, 2024

Conversation

mattsse
Copy link
Collaborator

@mattsse mattsse commented Jul 22, 2024

make it explicit that highest_gas_limit tracks the highest gas with which the tx succeeds, since we have a cap check:

// If the provided gas limit is less than computed cap, use that
env.tx.gas_limit = env.tx.gas_limit.min(highest_gas_limit);

@shekhirin shekhirin added C-docs An addition or correction to our documentation A-rpc Related to the RPC implementation labels Jul 22, 2024
@mattsse mattsse added this pull request to the merge queue Jul 22, 2024
Merged via the queue into main with commit d07955e Jul 22, 2024
33 checks passed
@mattsse mattsse deleted the matt/ensure-highest-gaslimit-mirrors-success-transact branch July 22, 2024 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-rpc Related to the RPC implementation C-docs An addition or correction to our documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants