http: minor.
This commit is contained in:
parent
15da585b68
commit
11a90dd7da
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user