Remove legacy block schema version checking
authoralex <alex@alex-VirtualBox.(none)>
Thu, 1 Aug 2013 18:14:01 +0000 (22:14 +0400)
committeralex <alex@alex-VirtualBox.(none)>
Thu, 1 Aug 2013 18:14:01 +0000 (22:14 +0400)
src/main.cpp

index 7881108..57fd7da 100644 (file)
@@ -2250,10 +2250,6 @@ bool CBlock::AcceptBlock()
         }
     }
 
-    // Reject block.nVersion < 3 blocks since 95% threshold on mainNet and always on testNet:
-    if (nVersion < 3 && ((!fTestNet && nHeight > 14060) || (fTestNet && nHeight > 0)))
-        return error("CheckBlock() : rejected nVersion < 3 block");
-
     // Enforce rule that the coinbase starts with serialized block height
     CScript expect = CScript() << nHeight;
     if (!std::equal(expect.begin(), expect.end(), vtx[0].vin[0].scriptSig.begin()))