Always call the callback even when mining is disabled.

This commit is contained in:
Adrian Sutton
2019-07-31 17:25:42 +10:00
parent 49cb32b81c
commit 82c33b2747

View File

@@ -493,6 +493,8 @@ Node.prototype.getStats = function(forced)
{
if (web3.eth.mining) {
web3.eth.getHashrate(callback);
} else {
callback(null, 0);
}
},
gasPrice: function (callback)