blockchain: do not check blockstore with spv

This commit is contained in:
Braydon Fuller 2019-03-12 16:44:37 -07:00
parent d1e747cf2f
commit bdcb392a9c
No known key found for this signature in database
GPG Key ID: F24F232D108B3AD4

View File

@ -2697,8 +2697,10 @@ class ChainOptions {
*/
fromOptions(options) {
assert(options.blocks && typeof options.blocks === 'object',
'Chain requires a blockstore.');
if (!options.spv) {
assert(options.blocks && typeof options.blocks === 'object',
'Chain requires a blockstore.');
}
this.blocks = options.blocks;