rpc: fixes for net and mining.
This commit is contained in:
parent
6299b99614
commit
42e03c227a
@ -412,7 +412,7 @@ RPC.prototype.getconnectioncount = function getconnectioncount(args, callback) {
|
||||
};
|
||||
|
||||
RPC.prototype.getnettotals = function getnettotals(args, callback) {
|
||||
if (args.help || args.length < 1 || args.length > 2)
|
||||
if (args.help || args.length > 0)
|
||||
return callback(new Error('getnettotals'));
|
||||
|
||||
callback(null, {
|
||||
@ -1137,7 +1137,7 @@ RPC.prototype.getmininginfo = function getmininginfo(args, callback) {
|
||||
if (args.help || args.length !== 0)
|
||||
return callback(new Error('getmininginfo'));
|
||||
|
||||
this.chain.getBlock(this.chain.tip.hash, function(err, block) {
|
||||
this.chain.db.getBlock(this.chain.tip.hash, function(err, block) {
|
||||
if (err)
|
||||
return callback(err);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user