Testnet has a block that has an issue with this
This commit is contained in:
parent
f6aaf70c3d
commit
2c0482a7be
@ -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).
|
||||
|
||||
Loading…
Reference in New Issue
Block a user