rpc: fix arg length check for getblock.

This commit is contained in:
Christopher Jeffrey 2017-05-12 11:44:19 -07:00
parent b66f023e22
commit f2f94a800e
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

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