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
No known key found for this signature in database
GPG Key ID: 50DB9092C29D7DC6

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)