Merge pull request #4 from ajsutton/call-callback
Always call the callback even when mining is disabled
This commit is contained in:
commit
5ed3c2856b
@ -493,6 +493,8 @@ Node.prototype.getStats = function(forced)
|
|||||||
{
|
{
|
||||||
if (web3.eth.mining) {
|
if (web3.eth.mining) {
|
||||||
web3.eth.getHashrate(callback);
|
web3.eth.getHashrate(callback);
|
||||||
|
} else {
|
||||||
|
callback(null, 0);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
gasPrice: function (callback)
|
gasPrice: function (callback)
|
||||||
|
Loading…
Reference in New Issue
Block a user