Merge 372ca14fbe0e716c789b74b766a8532f0f174268 into db2c57ae9eebdb75c58cd165ac929919969c19a9

This commit is contained in:
Will Clark 2025-03-17 10:38:58 +01:00 committed by GitHub
commit d3f926f540
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -905,6 +905,12 @@ CFeeRate CBlockPolicyEstimator::estimateSmartFee(int confTarget, FeeCalculation
* horizons so we already have monotonically increasing estimates and
* the purpose of conservative estimates is not to let short term
* fluctuations lower our estimates by too much.
*
* Note: Monotonically increasing estimates are not guaranteed in certain
* data-sparse scenarios. In particular, if estimateCombinedFee returns no
* valid data (-1) for some estimates for a lower target, but does return
* valid data for a higher target, the estimate can theoretically return a
* higher value for higher targets.
*/
double halfEst = estimateCombinedFee(confTarget/2, HALF_SUCCESS_PCT, true, &tempResult);
if (feeCalc) {