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:
@@ -74,7 +74,7 @@ namespace Checkpoints {
|
|||||||
fWorkAfter = nExpensiveAfter*fSigcheckVerificationFactor;
|
fWorkAfter = nExpensiveAfter*fSigcheckVerificationFactor;
|
||||||
}
|
}
|
||||||
|
|
||||||
return fWorkBefore / (fWorkBefore + fWorkAfter);
|
return std::min(fWorkBefore / (fWorkBefore + fWorkAfter), 1.0);
|
||||||
}
|
}
|
||||||
|
|
||||||
int GetTotalBlocksEstimate(const CChainParams::CCheckpointData& data)
|
int GetTotalBlocksEstimate(const CChainParams::CCheckpointData& data)
|
||||||
|
|||||||
Reference in New Issue
Block a user