Skip to content

Commit 6ae00f8

Browse files
committed
check witness after 1085371 block
- few blocks had unexpected witness during segwit acctivation, this is necessary to skip those blocks and assume valid
1 parent b05a541 commit 6ae00f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/validation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3611,7 +3611,7 @@ static bool ContextualCheckBlock(const CBlock& block, BlockValidationState& stat
36113611
// No witness data is allowed in blocks that don't commit to witness data, as this would otherwise leave room for spam
36123612
if (!fHaveWitness) {
36133613
for (const auto& tx : block.vtx) {
3614-
if (tx->HasWitness()) {
3614+
if (tx->HasWitness() && nHeight > 1085371) {
36153615
return state.Invalid(BlockValidationResult::BLOCK_MUTATED, "unexpected-witness", strprintf("%s : unexpected witness data found", __func__));
36163616
}
36173617
}

0 commit comments

Comments
 (0)