From 2464ed0ad0e29119f29a0029cf2eba1339cd33e5 Mon Sep 17 00:00:00 2001 From: cubedro Date: Fri, 27 Feb 2015 00:02:01 +0200 Subject: [PATCH 1/2] added default settings in processes.json --- processes.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/processes.json b/processes.json index c75449d..6f71108 100644 --- a/processes.json +++ b/processes.json @@ -29,8 +29,8 @@ "NODE_ENV" : "production", "RPC_HOST" : "localhost", "RPC_PORT" : "8080", - "WS_SERVER" : "", - "WS_SECRET" : "", + "WS_SERVER" : "wss://eth-netstats.herokuapp.com", + "WS_SECRET" : "eth-net-stats-has-a-secret", } } ] \ No newline at end of file From 045d8cceb2f8832a8d2b1aa358331ddb848aaeeb Mon Sep 17 00:00:00 2001 From: cubedro Date: Fri, 27 Feb 2015 01:19:55 +0200 Subject: [PATCH 2/2] added txCount error --- lib/node.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/node.js b/lib/node.js index dda836f..76e2bcd 100644 --- a/lib/node.js +++ b/lib/node.js @@ -121,6 +121,7 @@ Node.prototype.isActive = function() code: '1', msg: err }); + console.log(err); } this.stats.active = false; @@ -154,6 +155,7 @@ Node.prototype.getBlock = function(number) code: '3', msg: err }); + console.log(err); } } @@ -170,6 +172,10 @@ Node.prototype.getBlock = function(number) block.txCount = web3.eth.transactionCount(block.hash) || '?'; } catch (err) { + this.stats.errors.push({ + code: '4', + msg: err + }); console.log(err); } } @@ -179,6 +185,7 @@ Node.prototype.getBlock = function(number) code: '2', msg: err }); + console.log(err); } return block;