Always call the callback even when mining is disabled.
This commit is contained in:
parent
49cb32b81c
commit
82c33b2747
@ -493,6 +493,8 @@ Node.prototype.getStats = function(forced)
|
||||
{
|
||||
if (web3.eth.mining) {
|
||||
web3.eth.getHashrate(callback);
|
||||
} else {
|
||||
callback(null, 0);
|
||||
}
|
||||
},
|
||||
gasPrice: function (callback)
|
||||
|
Loading…
Reference in New Issue
Block a user