limit blockchain progress to a max of 1.000000
This commit is contained in:
parent
cfc5212dcb
commit
b3594b5273
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue