]> Git Repo - VerusCoin.git/commitdiff
Full fix for incorrect solution
authormiketout <[email protected]>
Sun, 8 Dec 2019 06:47:51 +0000 (22:47 -0800)
committermiketout <[email protected]>
Sun, 8 Dec 2019 06:47:51 +0000 (22:47 -0800)
src/main.cpp

index bfa4fc9faa2aa5b53aa0e31502f08968f7eabc3a..b8008c13de8c4f45644cb4718cdf0f98dd2b3d8a 100644 (file)
@@ -5293,7 +5293,7 @@ bool ContextualCheckBlock(
         std::vector<unsigned char> vch = block.nSolution;
         uint32_t ver = CVerusSolutionVector(vch).Version();
         // we let some V3's slip by, so enforce correct version for all versions after V3
-        if (ver < CActivationHeight::SOLUTION_VERUSV2 || (ver > CActivationHeight::SOLUTION_VERUSV3 && ver != CConstVerusSolutionVector::GetVersionByHeight(nHeight)))
+        if (ver < CActivationHeight::SOLUTION_VERUSV2 || (CConstVerusSolutionVector::GetVersionByHeight(nHeight) > CActivationHeight::SOLUTION_VERUSV3 && ver != CConstVerusSolutionVector::GetVersionByHeight(nHeight)))
         {
             return state.DoS(10, error("%s: block header has incorrect version", __func__), REJECT_INVALID, "incorrect-block-version");
         }
This page took 0.037114 seconds and 4 git commands to generate.