|
|
|
@ -3521,7 +3521,7 @@ static bool ContextualCheckBlockHeader(const CBlockHeader& block, BlockValidatio
|
|
|
|
|
strprintf("rejected nVersion=0x%08x block", block.nVersion));
|
|
|
|
|
|
|
|
|
|
if (block.nVersion < VERSIONBITS_TOP_BITS && IsWitnessEnabled(pindexPrev, consensusParams))
|
|
|
|
|
return state.Invalid(false, REJECT_OBSOLETE, strprintf("bad-version(0x%08x)", block.nVersion),
|
|
|
|
|
return state.Invalid(BlockValidationResult::BLOCK_INVALID_HEADER, strprintf("bad-version(0x%08x)", block.nVersion),
|
|
|
|
|
strprintf("rejected nVersion=0x%08x block", block.nVersion));
|
|
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|