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) {
|
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'));
|
return callback(new Error('getnettotals'));
|
||||||
|
|
||||||
callback(null, {
|
callback(null, {
|
||||||
@ -1137,7 +1137,7 @@ RPC.prototype.getmininginfo = function getmininginfo(args, callback) {
|
|||||||
if (args.help || args.length !== 0)
|
if (args.help || args.length !== 0)
|
||||||
return callback(new Error('getmininginfo'));
|
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)
|
if (err)
|
||||||
return callback(err);
|
return callback(err);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user