chain: bip147.

This commit is contained in:
Christopher Jeffrey 2016-09-18 12:30:23 -07:00
parent 3f77f12c03
commit 1af3ac63de
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -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();