Skip to content

Commit

Permalink
Fix typo: "conditon" → "condition"
Browse files Browse the repository at this point in the history
Typo introduced in commit 439c4e8.
  • Loading branch information
practicalswift committed Jul 18, 2017
1 parent 35aff43 commit 5a6671c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/policy/fees.cpp
Expand Up @@ -840,7 +840,7 @@ CFeeRate CBlockPolicyEstimator::estimateSmartFee(int confTarget, FeeCalculation

// Return failure if trying to analyze a target we're not tracking
if (confTarget <= 0 || (unsigned int)confTarget > longStats->GetMaxConfirms()) {
return CFeeRate(0); // error conditon
return CFeeRate(0); // error condition
}

// It's not possible to get reasonable estimates for confTarget of 1
Expand All @@ -852,7 +852,7 @@ CFeeRate CBlockPolicyEstimator::estimateSmartFee(int confTarget, FeeCalculation
}
if (feeCalc) feeCalc->returnedTarget = confTarget;

if (confTarget <= 1) return CFeeRate(0); // error conditon
if (confTarget <= 1) return CFeeRate(0); // error condition

assert(confTarget > 0); //estimateCombinedFee and estimateConservativeFee take unsigned ints
/** true is passed to estimateCombined fee for target/2 and target so
Expand Down Expand Up @@ -899,7 +899,7 @@ CFeeRate CBlockPolicyEstimator::estimateSmartFee(int confTarget, FeeCalculation
}
}

if (median < 0) return CFeeRate(0); // error conditon
if (median < 0) return CFeeRate(0); // error condition

return CFeeRate(median);
}
Expand Down

0 comments on commit 5a6671c

Please sign in to comment.