mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 13:03:17 +01:00
Fix typo: "conditon" → "condition"
Typo introduced in commit 439c4e8ad5
.
This commit is contained in:
parent
35aff43217
commit
5a6671c4ca
@ -840,7 +840,7 @@ CFeeRate CBlockPolicyEstimator::estimateSmartFee(int confTarget, FeeCalculation
|
|||||||
|
|
||||||
// Return failure if trying to analyze a target we're not tracking
|
// Return failure if trying to analyze a target we're not tracking
|
||||||
if (confTarget <= 0 || (unsigned int)confTarget > longStats->GetMaxConfirms()) {
|
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
|
// It's not possible to get reasonable estimates for confTarget of 1
|
||||||
@ -852,7 +852,7 @@ CFeeRate CBlockPolicyEstimator::estimateSmartFee(int confTarget, FeeCalculation
|
|||||||
}
|
}
|
||||||
if (feeCalc) feeCalc->returnedTarget = confTarget;
|
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
|
assert(confTarget > 0); //estimateCombinedFee and estimateConservativeFee take unsigned ints
|
||||||
/** true is passed to estimateCombined fee for target/2 and target so
|
/** true is passed to estimateCombined fee for target/2 and target so
|
||||||
@ -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);
|
return CFeeRate(median);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user