From c0ac60e29161ac57e68407909752d66221abaa2f Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Tue, 26 Jul 2016 02:20:36 -0700 Subject: [PATCH] chain: minor fix for segnet3. --- lib/bcoin/chain.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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())