|
|
|
@ -3569,9 +3569,9 @@ bool ContextualCheckBlockHeader(const CBlockHeader& block, CValidationState& sta
|
|
|
|
|
strprintf("rejected nVersion=0x%08x block", version - 1));
|
|
|
|
|
|
|
|
|
|
// Reject outdated version blocks when 75% of the network (BIP9 rules) has upgraded:
|
|
|
|
|
if (block.nVersion < VERSIONBITS_TOP_BITS && IsWitnessEnabled(pindexPrev, consensusParams))
|
|
|
|
|
return state.Invalid(false, REJECT_OBSOLETE, strprintf("bad-version(0x%08x)", block.nVersion),
|
|
|
|
|
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),
|
|
|
|
|
// strprintf("rejected nVersion=0x%08x block", block.nVersion));
|
|
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|