Merge pull request #4 from ajsutton/call-callback

Always call the callback even when mining is disabled
This commit is contained in:
Talha Cross
2019-08-02 10:36:12 +02:00
committed by GitHub

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)