fubuloubu / pytest-ethereum-old

py.test plugin for testing Ethereum smart contracts
MIT License
20 stars 1 forks source link

Skip gas estimation for speed boost #16

Open fubuloubu opened 6 years ago

fubuloubu commented 6 years ago

Since gas cost is zero, there is no reasonable need for estimateGas prior to a transaction. Supplying custom gas amount will skip this step in web3py.

Suggestion is to build in that any transaction will submit the BLK_GAS_LIMIT for custom gas amount, since automining is enabled by default this shouldn't cause a problem typically.


In concert with #3, there may be an alternative value to set for each transaction if the abi specifies the maximum gas usage.