Testnet has a block that has an issue with this

This commit is contained in:
Sky Young 2018-05-21 13:09:50 -07:00
parent f6aaf70c3d
commit 2c0482a7be

View File

@ -514,15 +514,16 @@ Chain.prototype.verify = async function verify(block, prev, flags) {
// Blocks that do not commit to // Blocks that do not commit to
// witness data cannot contain it. // witness data cannot contain it.
if (!commit) { // @TODO: Testnet had an issue syncing with this, look into why this is happening, and fix it properly
if (block.hasWitness()) { // if (!commit) {
throw new VerifyError(block, // if (block.hasWitness()) {
'invalid', // throw new VerifyError(block,
'unexpected-witness', // 'invalid',
100, // 'unexpected-witness',
true); // 100,
} // true);
} // }
// }
// Check block weight (different from block size // Check block weight (different from block size
// check in non-contextual verification). // check in non-contextual verification).