diff --git a/lib/node.js b/lib/node.js index 82ab4bd..b5bd1e8 100644 --- a/lib/node.js +++ b/lib/node.js @@ -493,6 +493,8 @@ Node.prototype.getStats = function(forced) { if (web3.eth.mining) { web3.eth.getHashrate(callback); + } else { + callback(null, 0); } }, gasPrice: function (callback)