-
Notifications
You must be signed in to change notification settings - Fork 683
--miner.callGasLimit
implementation is wrong
#1645
Comments
Is there an update on this? I believe this is causing differential behavior b/w the latest release of ganache and the deprecated
To reproduce, you can try to deploy This is the This is the ganache command: The ganache command returns the following error in hardhat:
The current working solution is to specify a |
@anishnaik, The v6 of ganache-cli used a different default value ( Sorry for any headache this has caused! |
Hi @davidmurdoch thank you for your response. I should have mentioned that I set the Based on this discussion in the geth github (ethereum/go-ethereum#18973) my hunch is that @MicaiahReid's point might be causing some whacky behavior. The last thing I want to note is that the documentation on the npm website might be off? Based on your feedback, callGasLimit's default value is |
Hi @davidmurdoch I have created a test environment for you / your team to go through this: The testing script is called Ganache@7.3.2
Terminal 2
This should fail with the following error:
You can try to set a ganache-cli@6.12.2
Terminal 2
This test should pass This could also be a dependency issue in the hardhat environment? Environment |
Thanks for the additional information, we'll look into it! I've opened #3322 to correct the documentation issue. |
The purpose of the
miner.callGasLimit
option is to set a cap on gas that is used in aneth_call
/eth_estimateGas
RPC call (as in geth's--rpc.gascap
option). The purpose of this option is to prevent a DOS attack wherein a contract is uploaded with an infinite loop andeth_call
is used on that contract, causing miners to work very very hard.Currently, it's used as a default gas limit for a transaction that is calling
eth_call
/eth_estimateGas
.Fix it!
The text was updated successfully, but these errors were encountered: