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
// 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).