limit blockchain progress to a max of 1.000000

Issue: https://github.com/zcash/zcash/issues/3161
Fix commit: https://github.com/zcash/zcash/pull/4176/commits/b3594b52739c96105a3f6976924a9075b1c5bbe2
This commit is contained in:
DeckerSU
2020-05-21 21:53:51 -04:00
committed by Duke Leto
parent 3199c01328
commit bde1f3c632
+1 -1
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)