chain: minor fix for segnet3.
This commit is contained in:
parent
b7c280a84c
commit
c0ac60e291
@ -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())
|
||||
|
||||
Loading…
Reference in New Issue
Block a user