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: add sanity checks to ethereum gas prices #3077

Merged
merged 1 commit into from Jul 8, 2022

Conversation

mrekucci
Copy link
Contributor

@mrekucci mrekucci commented Jul 6, 2022

Checklist

Related Issue (Optional)

#3023; Closes #3020


This change is Reviewable

} else {
gasPrice = request.GasPrice
}
if gasPrice.Cmp(minGasPrice) <= 0 {
Copy link
Contributor

Choose a reason for hiding this comment

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

would it make sense to have a check for a maximum gas price value?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure, we have a gas limit which is prefilled in most cases. @ralph-pichler what do you think?

Copy link
Member

Choose a reason for hiding this comment

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

what a maximum sensible gas price is always depends on which network and which network conditions.

@mrekucci mrekucci merged commit 08674d0 into master Jul 8, 2022
@mrekucci mrekucci deleted the gas-price-sanity-check branch July 8, 2022 08:34
@acud acud added this to the 1.6.3 milestone Jul 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add sanity checks to gas prices from ethereum backend
4 participants