4

I'm trying to create a wallet contract using Geth 1.5 --light and Mist Wallet 0.8.7. Estimated gas cost for the contract creation is 1,962,239 while the gas limit is 1,998,227. So, everything should be fine, but Mist throws me an error Exceeds gas block limit. What might be the problem?

1
  • 1
    how much gas gets consumed on a test net with gas set to practically unlimited? I never bother with estimated gas, I just run it and find out.
    – Paul S
    Commented Nov 16, 2016 at 21:05

1 Answer 1

5

Possibility one: if it's that close, it's quite possible some small fee (uncounted by the estimator) is pushing it over. There's not much you can do in this situation, because it's up to the miners to set the gas limit.

Possibility two: you're giving the transaction too high of a gasLimit. If the transaction has a limit of 2,000,000, it'd stop you since it could theoretically go over the block gas limit, even if in practice it won't. If this is the case, see if you can reduce the transaction's gasLimit while remaining above the amount it actually needs--that might do the trick.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.