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

Catch overflows in gas wanted when comparing to maximum block gas limit #3071

Closed
ValarDragon opened this issue Dec 10, 2018 · 0 comments
Closed

Comments

@ValarDragon
Copy link
Contributor

ValarDragon commented Dec 10, 2018

Suppose the max block gas limit is 2**40. I can have current gas usage at 2**39, then another tx on the order of 2**64 - 2**39 can overflow that back to be around 0. We just need to ensure no overflows occur when we do that summation.

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

No branches or pull requests

1 participant