chain: bip147.
This commit is contained in:
parent
3f77f12c03
commit
1af3ac63de
@ -544,10 +544,14 @@ Chain.prototype.getDeployments = function getDeployments(block, prev, ancestors,
|
|||||||
if (err)
|
if (err)
|
||||||
return next(err);
|
return next(err);
|
||||||
|
|
||||||
if (active && self.options.witness) {
|
if (active) {
|
||||||
state.flags |= constants.flags.VERIFY_WITNESS;
|
// BIP147
|
||||||
if (!self.state.hasWitness())
|
// state.flags |= constants.flags.VERIFY_NULLDUMMY;
|
||||||
self.logger.warning('Segwit has been activated.');
|
if (self.options.witness) {
|
||||||
|
state.flags |= constants.flags.VERIFY_WITNESS;
|
||||||
|
if (!self.state.hasWitness())
|
||||||
|
self.logger.warning('Segwit has been activated.');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
next();
|
next();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user