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)
|
||||
return next(err);
|
||||
|
||||
if (active && self.options.witness) {
|
||||
state.flags |= constants.flags.VERIFY_WITNESS;
|
||||
if (!self.state.hasWitness())
|
||||
self.logger.warning('Segwit has been activated.');
|
||||
if (active) {
|
||||
// BIP147
|
||||
// state.flags |= constants.flags.VERIFY_NULLDUMMY;
|
||||
if (self.options.witness) {
|
||||
state.flags |= constants.flags.VERIFY_WITNESS;
|
||||
if (!self.state.hasWitness())
|
||||
self.logger.warning('Segwit has been activated.');
|
||||
}
|
||||
}
|
||||
|
||||
next();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user