rpc: minor.

This commit is contained in:
Christopher Jeffrey 2017-05-13 04:10:05 -07:00
parent c78707ed6a
commit b5375f576d
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -587,8 +587,10 @@ RPC.prototype.getBlockByHeight = co(function* getBlockByHeight(args, help) {
var details = valid.bool(2, false);
var entry, block;
if (help || args.length < 1 || args.length > 3)
throw new RPCError(errs.MISC_ERROR, 'getblockbyheight "height" ( verbose )');
if (help || args.length < 1 || args.length > 3) {
throw new RPCError(errs.MISC_ERROR,
'getblockbyheight "height" ( verbose )');
}
if (height === -1)
throw new RPCError(errs.TYPE_ERROR, 'Invalid block height.');