From 1526f203baacb122f45953a1779529a857a6bfb7 Mon Sep 17 00:00:00 2001 From: cubedro Date: Thu, 9 Apr 2015 00:58:23 +0300 Subject: [PATCH 1/2] increased timeout to 60s --- lib/node.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node.js b/lib/node.js index d25b844..7389e66 100644 --- a/lib/node.js +++ b/lib/node.js @@ -22,7 +22,7 @@ web3.setProvider(new web3.providers.HttpProvider('http://' + (process.env.RPC_HO Socket = Primus.createSocket({ transformer: 'websockets', pathname: '/api', - timeout: 10000, + timeout: 60000, strategy: 'disconnect,online', plugin: {emitter: Emitter, sparkLatency: Latency} }); From ca1713327b5f903987f1a31edbc4827aa2dca615 Mon Sep 17 00:00:00 2001 From: cubedro Date: Thu, 9 Apr 2015 01:11:26 +0300 Subject: [PATCH 2/2] removed 'from' from registrar call --- lib/node.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/node.js b/lib/node.js index 7389e66..43c27a3 100644 --- a/lib/node.js +++ b/lib/node.js @@ -85,7 +85,6 @@ function Node() errors: [] }; this._lastStats = JSON.stringify(this.stats); - this._coinbase = web3.eth.coinbase; this._tries = 0; this._down = 0; @@ -316,7 +315,7 @@ Node.prototype.getMinerName = function(miner) } else { - var name = this._Registrar.call({from: this._coinbase}).name(miner); + var name = this._Registrar.name(miner); if(name.length > 0) {