-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
When max gas = -1, the SDK doesn't allow for infinite gas #3791
Comments
imho, we simply need to check for overflow here. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See:
cosmos-sdk/baseapp/baseapp.go
Line 535 in 19f0f92
The semantics of
max_gas < 0
is for it to allow for infinite gas. However, in getMaximumBlockGas,cosmos-sdk/baseapp/baseapp.go
Line 291 in 19f0f92
uint64(max_gas)
. For negative values of gas this yields something on the order of2**64 - 1
, which then yields a gas meter with around2**64
gas. This is far off from the desired infinity 😜The text was updated successfully, but these errors were encountered: