rpc: minor.
This commit is contained in:
parent
c78707ed6a
commit
b5375f576d
@ -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.');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user