blockchain: do not check blockstore with spv
This commit is contained in:
parent
d1e747cf2f
commit
bdcb392a9c
@ -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;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user