With solidity view function, you can specific the amount of gas to use. My understand is 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.
According to Can Solidity constant functions be arbitrarily complex? I should be able to pass any amount of gas as a parameter.
However, my truffle & Ganache set up doesn't allow me to do so.
error: Exceeds block gas limit
Mymethod is a view function.
Can anyone tell me if this is a problem with the Ganache client or is it a legit constraint that read only (view, pure, constant) function should not consume more gas than the block limit?
Thank you, Tao