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
commit 5ed3c2856b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)