fix spv option check.

This commit is contained in:
Christopher Jeffrey 2016-05-07 03:38:13 -07:00
parent 8860eb5894
commit f171bb0668
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -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.