Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
UdjinM6 committed Sep 8, 2020
1 parent b8f3451 commit 8f676f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/versionbits.cpp
Expand Up @@ -226,7 +226,7 @@ class VersionBitsConditionChecker : public AbstractThresholdConditionChecker {
if (params.vDeployments[id].nThresholdMin == 0 || params.vDeployments[id].nFalloffCoeff == 0) {
return params.vDeployments[id].nThresholdStart;
}
int64_t nThresholdCalc = params.vDeployments[id].nThresholdStart - std::pow(nAttempt, 2) * Period(params) / 100 / params.vDeployments[id].nFalloffCoeff;
int64_t nThresholdCalc = params.vDeployments[id].nThresholdStart - nAttempt * nAttempt * Period(params) / 100 / params.vDeployments[id].nFalloffCoeff;
return std::max(params.vDeployments[id].nThresholdMin, nThresholdCalc);
}

Expand Down

0 comments on commit 8f676f8

Please sign in to comment.