rpc: fixes for net and mining.

This commit is contained in:
Christopher Jeffrey 2016-08-05 14:32:29 -07:00
parent 6299b99614
commit 42e03c227a
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -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);