diff --git a/lib/bcoin/chain.js b/lib/bcoin/chain.js index f1439382..43e92db0 100644 --- a/lib/bcoin/chain.js +++ b/lib/bcoin/chain.js @@ -607,7 +607,6 @@ Chain.prototype.verify = function verify(block, prev, callback) { Chain.prototype.getDeployments = function getDeployments(block, prev, ancestors, callback) { var self = this; - var height = prev.height + 1; var state = new DeploymentState(); // For some reason bitcoind has p2sh in the @@ -668,7 +667,7 @@ Chain.prototype.getDeployments = function getDeployments(block, prev, ancestors, } // Segregrated witness is now usable (bip141 - segnet3) - if (this.network.oldWitness) { + if (this.options.witness && this.network.oldWitness) { if (block.version >= 5 && prev.isUpgraded(5, ancestors)) { state.flags |= constants.flags.VERIFY_WITNESS; if (!this.state.hasWitness())