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

Align linea_estimateGas behavior to geth #25

Merged
merged 1 commit into from
Jun 25, 2024

Conversation

fab-10
Copy link
Contributor

@fab-10 fab-10 commented Jun 24, 2024

Set isAllowExceedingBalance to false when simulating the tx, makes the estimation taking in account also the gas price/gas fee passed as input, and result in better gas estimations, and it is aligned with what geth returns by default.
Also defaulting the gasPrice field to the baseFee, when not present in the request, only if not trying to simulate a base fee market tx

Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
@fab-10 fab-10 force-pushed the make-linea-estimateGas-strict-by-default branch from c6996a8 to 7ff641a Compare June 24, 2024 16:07
Copy link
Contributor

@macfarla macfarla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@fab-10 fab-10 merged commit 9955297 into main Jun 25, 2024
6 checks passed
@fab-10 fab-10 deleted the make-linea-estimateGas-strict-by-default branch June 25, 2024 07:53
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.

2 participants