| 709 | } |
| 710 | |
| 711 | unsigned int CBlockPolicyEstimator::HighestTargetTracked(FeeEstimateHorizon horizon) const |
| 712 | { |
| 713 | switch (horizon) { |
| 714 | case FeeEstimateHorizon::SHORT_HALFLIFE: { |
| 715 | return shortStats->GetMaxConfirms(); |
| 716 | } |
| 717 | case FeeEstimateHorizon::MED_HALFLIFE: { |
| 718 | return feeStats->GetMaxConfirms(); |
| 719 | } |
| 720 | case FeeEstimateHorizon::LONG_HALFLIFE: { |
| 721 | return longStats->GetMaxConfirms(); |
| 722 | } |
| 723 | default: { |
| 724 | throw std::out_of_range("CBlockPolicyEstimator::HighestTargetTracked unknown FeeEstimateHorizon"); |
| 725 | } |
| 726 | } |
| 727 | } |
| 728 | |
| 729 | unsigned int CBlockPolicyEstimator::BlockSpan() const |
| 730 | { |
no test coverage detected