From 2c0482a7be9e906a91cf2d8ccb7108deaa5c01df Mon Sep 17 00:00:00 2001 From: Sky Young Date: Mon, 21 May 2018 13:09:50 -0700 Subject: [PATCH] Testnet has a block that has an issue with this --- lib/blockchain/chain.js | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/lib/blockchain/chain.js b/lib/blockchain/chain.js index 1c0d2d76..f2b65a81 100644 --- a/lib/blockchain/chain.js +++ b/lib/blockchain/chain.js @@ -514,15 +514,16 @@ Chain.prototype.verify = async function verify(block, prev, flags) { // Blocks that do not commit to // witness data cannot contain it. - if (!commit) { - if (block.hasWitness()) { - throw new VerifyError(block, - 'invalid', - 'unexpected-witness', - 100, - true); - } - } + // @TODO: Testnet had an issue syncing with this, look into why this is happening, and fix it properly + // if (!commit) { + // if (block.hasWitness()) { + // throw new VerifyError(block, + // 'invalid', + // 'unexpected-witness', + // 100, + // true); + // } + // } // Check block weight (different from block size // check in non-contextual verification).