Skip to content

internal/ethapi: reduce hi and low range on DoEstimateGas #27820

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

Closed
wants to merge 1 commit into from

Conversation

antonydenyer
Copy link
Contributor

Perform a pre-check to see if gasUsed on the executable was enough.

Change the binary search to start with a lo of gasUsed and a hi of the theoretical max given the previous gasUsed.
Then perform a binary search with curtailed bounds.

Peform a pre-check to see if gasUsed on first executable was enough

Change the binary search to start with a low of gasUsed and a hi
of the theoretical max given the previous gas used.
Then perform a binary search from there.
@antonydenyer
Copy link
Contributor Author

Almost a duplicate forgot to raise the pr!
#27710

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