| 703 | } |
| 704 | |
| 705 | unsigned int CBlockPolicyEstimator::HighestTargetTracked(FeeEstimateHorizon horizon) const |
| 706 | { |
| 707 | LOCK(m_cs_fee_estimator); |
| 708 | switch (horizon) { |
| 709 | case FeeEstimateHorizon::SHORT_HALFLIFE: { |
| 710 | return shortStats->GetMaxConfirms(); |
| 711 | } |
| 712 | case FeeEstimateHorizon::MED_HALFLIFE: { |
| 713 | return feeStats->GetMaxConfirms(); |
| 714 | } |
| 715 | case FeeEstimateHorizon::LONG_HALFLIFE: { |
| 716 | return longStats->GetMaxConfirms(); |
| 717 | } |
| 718 | } // no default case, so the compiler can warn about missing cases |
| 719 | assert(false); |
| 720 | } |
| 721 | |
| 722 | unsigned int CBlockPolicyEstimator::BlockSpan() const |
| 723 | { |