| 662 | } |
| 663 | |
| 664 | CFeeRate CBlockPolicyEstimator::estimateFee(int confTarget) const |
| 665 | { |
| 666 | // It's not possible to get reasonable estimates for confTarget of 1 |
| 667 | if (confTarget <= 1) |
| 668 | return CFeeRate(0); |
| 669 | |
| 670 | return estimateRawFee(confTarget, DOUBLE_SUCCESS_PCT, FeeEstimateHorizon::MED_HALFLIFE); |
| 671 | } |
| 672 | |
| 673 | CFeeRate CBlockPolicyEstimator::estimateRawFee(int confTarget, double successThreshold, FeeEstimateHorizon horizon, EstimationResult* result) const |
| 674 | { |