Auto merge of #4176 - oxarbitrage:issue3161, r=str4d
avoid blockchain progress greater than 1.0 Closes #3161
This commit is contained in:
commit
34d428aa43
|
@ -51,7 +51,7 @@ namespace Checkpoints {
|
||||||
fWorkAfter = nExpensiveAfter*fSigcheckVerificationFactor;
|
fWorkAfter = nExpensiveAfter*fSigcheckVerificationFactor;
|
||||||
}
|
}
|
||||||
|
|
||||||
return fWorkBefore / (fWorkBefore + fWorkAfter);
|
return std::min(fWorkBefore / (fWorkBefore + fWorkAfter), 1.0);
|
||||||
}
|
}
|
||||||
|
|
||||||
int GetTotalBlocksEstimate(const CCheckpointData& data)
|
int GetTotalBlocksEstimate(const CCheckpointData& data)
|
||||||
|
|
Loading…
Reference in New Issue