diff --git a/lib/bcoin/chain.js b/lib/bcoin/chain.js index 5b27028a..44e53b38 100644 --- a/lib/bcoin/chain.js +++ b/lib/bcoin/chain.js @@ -520,7 +520,7 @@ Chain.prototype._verify = function _verify(block, prev, callback) { self.segwitActive = state.segwit; // Can't verify any further when merkleblock or headers. - if (this.options.spv) + if (self.options.spv) return callback(null, state.flags); // Make sure the height contained in the coinbase is correct.