http: minor.

This commit is contained in:
Christopher Jeffrey 2017-05-15 01:13:38 -07:00
parent 15da585b68
commit 11a90dd7da
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -270,8 +270,7 @@ HTTPServer.prototype.initRouter = function initRouter() {
var hash = valid.get('block');
var block, view, height;
enforce(typeof hash === 'number' || typeof hash === 'string',
'Hash or height required.');
enforce(typeof hash === 'string', 'Hash or height required.');
enforce(!this.chain.options.spv, 'Cannot get block in SPV mode.');
if (hash.length === 64)