|
|
@ -186,7 +186,8 @@ function ExecutionContext () { |
|
|
|
|
|
|
|
|
|
|
|
this.blockGasLimitDefault = 4300000 |
|
|
|
this.blockGasLimitDefault = 4300000 |
|
|
|
this.blockGasLimit = this.blockGasLimitDefault |
|
|
|
this.blockGasLimit = this.blockGasLimitDefault |
|
|
|
setInterval(() => { |
|
|
|
// removing the setinterval cause it cause tape test to hang and we don't need this.
|
|
|
|
|
|
|
|
// there's a copy of this file in remix-ide repo @TODO to refactor
|
|
|
|
if (this.getProvider() !== 'vm') { |
|
|
|
if (this.getProvider() !== 'vm') { |
|
|
|
web3.eth.getBlock('latest', (err, block) => { |
|
|
|
web3.eth.getBlock('latest', (err, block) => { |
|
|
|
if (!err) { |
|
|
|
if (!err) { |
|
|
@ -197,7 +198,6 @@ function ExecutionContext () { |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
}, 15000) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// TODO: not used here anymore and needs to be moved
|
|
|
|
// TODO: not used here anymore and needs to be moved
|
|
|
|
function setProviderFromEndpoint (endpoint, context, cb) { |
|
|
|
function setProviderFromEndpoint (endpoint, context, cb) { |
|
|
|