From 9b65467586e4af4b2c9130558b26e13c0afeddb9 Mon Sep 17 00:00:00 2001 From: cubedro Date: Thu, 16 Apr 2015 23:46:14 +0300 Subject: [PATCH] added block check error --- lib/node.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/node.js b/lib/node.js index 1662f73..071caeb 100644 --- a/lib/node.js +++ b/lib/node.js @@ -375,6 +375,8 @@ Node.prototype.getStats = function() this.stats.mining = web3.eth.mining; this.stats.gasPrice = web3.toBigNumber(web3.eth.gasPrice).toString(10); + } else { + console.error("getStats: couldn't fetch block..."); } }