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
|
// 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).
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user