Skip to content

Commit

Permalink
Set process timeout for geth calling
Browse files Browse the repository at this point in the history
  • Loading branch information
Viktor Pulyak committed Jul 18, 2019
1 parent d9d8975 commit 7343956
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions geth.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class Geth {
this.requestId++;
return this.web3.currentProvider.sendAsync({
method: "debug_traceTransaction",
params: [txHash, { tracer: "callTracer", reexec: txBlockNumber ? (blockNumber - txBlockNumber + 20) : 200 }],
params: [txHash, { tracer: "callTracer", reexec: txBlockNumber ? (blockNumber - txBlockNumber + 20) : 200, timeout: "60s"}],
jsonrpc: "2.0",
id: this.requestId.toString(),
}, (err, result) => {
Expand Down Expand Up @@ -133,4 +133,4 @@ module.exports = Geth;
* @property {String} blockHash
* @property {Boolean} isInternal
* @property {String} type
*/
*/
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "etherscanner",
"namespace": "ethereum",
"version": "0.2.8",
"version": "0.2.9",
"description": "Receive all the ethereum transactions that have been included in the block, including 'internal' transactions",
"author": "tet32",
"license": "MIT",
Expand Down

0 comments on commit 7343956

Please sign in to comment.