From f171bb066859dc403d4bd828b9d0c6fd41b0e8b7 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Sat, 7 May 2016 03:38:13 -0700 Subject: [PATCH] fix spv option check. --- lib/bcoin/chain.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.