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

fix(gas): when estimating GasLimit only apply priors up to the nonce #5403

Merged
merged 1 commit into from
Jan 22, 2021

Conversation

Kubuxu
Copy link
Contributor

@Kubuxu Kubuxu commented Jan 22, 2021

The bug is applying all messages from given From address are priors
before appling the message that we are estimating.

If user tries replacing message in the middle with gas limit estimation
then message sequence is off and user will either get an execution error
or gas mis-esimation.

Resolves #5402

Tests will come in in another PR

The bug is applying all messages from given From address are priors
before appling the message that we are estimating.

If user tries replacing message in the middle with gas limit estimation
then message sequence is off and user will either get an execution error
or gas mis-esimation.

Resolves #5402

Signed-off-by: Jakub Sztandera <[email protected]>
@Kubuxu Kubuxu merged commit d6c0688 into master Jan 22, 2021
@Kubuxu Kubuxu deleted the fix/estim-limit-rbf branch January 22, 2021 18:43
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.

Don't apply a message that is getting replaced when estimating gas
2 participants