limit blockchain progress to a max of 1.000000

Issue: https://github.com/zcash/zcash/issues/3161
Fix commit: b3594b5273
This commit is contained in:
DeckerSU
2020-01-27 05:00:24 +03:00
committed by Duke Leto
parent 3199c01328
commit bde1f3c632

View File

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