-
Notifications
You must be signed in to change notification settings - Fork 683
Exceeds block gas limit error to call view functions #148
Comments
"Needs validation" in that we need someone from our team to verify that geth/parity also support view calls in excess of the block gas limit. Further, we probably don't want to allow infinite gas on view calls, or if we do we likely want to implement some timeout functionality as otherwise a view which never terminates will take out the whole node. |
I can add to this issue that I just checked and at least Parity has no problems using more gas for calls than block gasLimit |
Tested block gas limit checks when running expensive pure/view solidity functions * Ganache acknowledges block gas limit and prevents very expensive pure/view functions to execute * Geth ignores block gas limit and allows very expensive pure/view functions to execute * Parity ignores block gas limit and allows very expensive pure/view functions to execute
I can confirm it's the issue with ganache |
FYI, geth has the following option to limit gas usage for calling functions:
(checked with geth 1.9.3-stable) |
Closing as this is now fixed in #449. @TripleSpeeder, The new option, |
@xxorg3 commented on Wed Jul 25 2018
With solidity view function, you can specific a large number of gas to use. Since it is not a state changing transaction, all the gas cost is not charged for, and the client should be able to allow the call function to run with a gas limit larger than the block limit.
The text was updated successfully, but these errors were encountered: