From 82c33b2747e39ee87aaf594a6e1fe536d3f89b89 Mon Sep 17 00:00:00 2001 From: Adrian Sutton Date: Wed, 31 Jul 2019 17:25:42 +1000 Subject: [PATCH] Always call the callback even when mining is disabled. --- lib/node.js | 2 ++ 1 file changed, 2 insertions(+) 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)