chain: minor segnet3 fix.
This commit is contained in:
parent
c0ac60e291
commit
bccbef0aaa
@ -640,7 +640,7 @@ Chain.prototype.getDeployments = function getDeployments(block, prev, ancestors,
|
||||
|
||||
// Only allow version 5 blocks (bip141 - segnet3)
|
||||
// once the majority of blocks are using it.
|
||||
if (this.network.oldWitness) {
|
||||
if (this.options.witness && this.network.oldWitness) {
|
||||
if (block.version < 5 && prev.isOutdated(5, ancestors))
|
||||
return callback(new VerifyError(block, 'obsolete', 'bad-version', 0));
|
||||
}
|
||||
|
||||
@ -356,7 +356,7 @@ Peer.prototype._onAck = function _onAck(err) {
|
||||
// Let them know we support segwit (old
|
||||
// segwit3 nodes require this instead
|
||||
// of service bits).
|
||||
if (this.network.oldWitness) {
|
||||
if (this.pool.options.witness && this.network.oldWitness) {
|
||||
if (this.version.version >= 70012)
|
||||
this.write(this.framer.haveWitness());
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user