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

Gas estimation is unreliable in release v1.5.3 with espresso enabled #1856

Closed
piersy opened this issue Feb 24, 2022 · 0 comments · Fixed by #1858
Closed

Gas estimation is unreliable in release v1.5.3 with espresso enabled #1856

piersy opened this issue Feb 24, 2022 · 0 comments · Fixed by #1858

Comments

@piersy
Copy link
Contributor

piersy commented Feb 24, 2022

Description

Gas estimation is unreliable in release v1.5.3 with espresso enabled.

Calling estimate gas on a non validating node can sometimes return a gas estimate that is too low. When run against alfajores these tests are often failing due to the gas estimates being too low. This only seems to happen when calling estimate gas on non validating nodes and is a problem that manifests with the Espresso hard fork.

The specific case where the gas estimate seems to be too low is when a contract transaction is estimated against a pending block that contains the contract deployment. In such cases the estimation comes out slightly low.

This issue is exacerbated by another problem which is that the pending block is not updated in a timely fashion. Pending blocks should represent the next block to insert, but currently the pending block is update is delayed by the length of time of a block, so that the pending block for the most part shares the same number as the most recently inserted block.

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 a pull request may close this issue.

1 participant