Merge pull request #1102 from ethereum/fixTryTillResponse

Fix tryTillResponse test
pull/1/head
yann300 7 years ago committed by GitHub
commit f52a555ccb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/app/execution/txRunner.js

@ -204,8 +204,8 @@ TxRunner.prototype.runInNode = function (from, to, data, value, gasLimit, useCal
function tryTillResponse (txhash, done) {
executionContext.web3().eth.getTransactionReceipt(txhash, function (err, result) {
if (!err && !result) {
// Try again with a bit of delay
if (err || !result) {
// Try again with a bit of delay if error or if result still null
setTimeout(function () { tryTillResponse(txhash, done) }, 500)
} else {
done(err, {

Loading…
Cancel
Save