rpc: fix arg length check for getblock.
This commit is contained in:
parent
b66f023e22
commit
f2f94a800e
@ -500,7 +500,7 @@ RPC.prototype.getBlock = co(function* getBlock(args, help) {
|
||||
var details = valid.bool(2, false);
|
||||
var entry, block;
|
||||
|
||||
if (help || args.length < 1 || args.length > 2)
|
||||
if (help || args.length < 1 || args.length > 3)
|
||||
throw new RPCError(errs.MISC_ERROR, 'getblock "hash" ( verbose )');
|
||||
|
||||
if (!hash)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user