limit blockchain progress to a max of 1.000000

This commit is contained in:
Alfredo Garcia 2019-10-24 15:51:00 -03:00
parent cfc5212dcb
commit b3594b5273
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ namespace Checkpoints {
fWorkAfter = nExpensiveAfter*fSigcheckVerificationFactor;
}
return fWorkBefore / (fWorkBefore + fWorkAfter);
return std::min(fWorkBefore / (fWorkBefore + fWorkAfter), 1.0);
}
int GetTotalBlocksEstimate(const CCheckpointData& data)