blockchain: do not check blockstore with spv
This commit is contained in:
parent
d1e747cf2f
commit
bdcb392a9c
@ -2697,8 +2697,10 @@ class ChainOptions {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
fromOptions(options) {
|
fromOptions(options) {
|
||||||
assert(options.blocks && typeof options.blocks === 'object',
|
if (!options.spv) {
|
||||||
'Chain requires a blockstore.');
|
assert(options.blocks && typeof options.blocks === 'object',
|
||||||
|
'Chain requires a blockstore.');
|
||||||
|
}
|
||||||
|
|
||||||
this.blocks = options.blocks;
|
this.blocks = options.blocks;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user