chain: fix witness check.
This commit is contained in:
parent
dc0ee993e8
commit
8fe79fc7e7
@ -401,7 +401,7 @@ Chain.prototype.verify = function verify(block, prev, callback) {
|
||||
|
||||
// Blocks that do not commit to
|
||||
// witness data cannot contain it.
|
||||
if (!commitmentHash && self.options.witness) {
|
||||
if (!commitmentHash) {
|
||||
if (block.hasWitness()) {
|
||||
return callback(new VerifyError(block,
|
||||
'invalid',
|
||||
|
||||
Loading…
Reference in New Issue
Block a user