From f9fdd3424cc6fc66db215dc4a31560d42305c83c Mon Sep 17 00:00:00 2001 From: yann300 Date: Thu, 16 Mar 2017 10:11:21 +0100 Subject: [PATCH] disable gas estimation --- src/app/txRunner.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/app/txRunner.js b/src/app/txRunner.js index 270cde2076..2537750d27 100644 --- a/src/app/txRunner.js +++ b/src/app/txRunner.js @@ -76,11 +76,14 @@ TxRunner.prototype.execute = function () { // NOTE: estimateGas very likely will return a large limit if execution of the code failed // we want to be able to run the code in order to debug and find the cause for the failure var blockGasLimit = Math.floor(block.gasLimit - block.gasLimit / 1024) - tx.gas = blockGasLimit < gasEstimation ? blockGasLimit : gasEstimation + // tx.gas = blockGasLimit < gasEstimation ? blockGasLimit : gasEstimation + tx.gas = blockGasLimit // that's temporary, uncomment when the following is fixed https://github.com/ethereum/go-ethereum/issues/3653 + /* same as above if (tx.gas > gasLimit) { return callback('Gas required exceeds limit: ' + tx.gas) } + */ var sendTransaction = self.personalMode ? self.web3.personal.sendTransaction : self.web3.eth.sendTransaction sendTransaction(tx, function (err, resp) {