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 hash = valid.get('block');
|
||||||
var block, view, height;
|
var block, view, height;
|
||||||
|
|
||||||
enforce(typeof hash === 'number' || typeof hash === 'string',
|
enforce(typeof hash === 'string', 'Hash or height required.');
|
||||||
'Hash or height required.');
|
|
||||||
enforce(!this.chain.options.spv, 'Cannot get block in SPV mode.');
|
enforce(!this.chain.options.spv, 'Cannot get block in SPV mode.');
|
||||||
|
|
||||||
if (hash.length === 64)
|
if (hash.length === 64)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user