diff --git a/lib/http/rpc.js b/lib/http/rpc.js index 2f56515d..a21efaec 100644 --- a/lib/http/rpc.js +++ b/lib/http/rpc.js @@ -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)