| 18 | static constexpr double INF_FEERATE = 1e99; |
| 19 | |
| 20 | std::string StringForFeeEstimateHorizon(FeeEstimateHorizon horizon) |
| 21 | { |
| 22 | switch (horizon) { |
| 23 | case FeeEstimateHorizon::SHORT_HALFLIFE: return "short"; |
| 24 | case FeeEstimateHorizon::MED_HALFLIFE: return "medium"; |
| 25 | case FeeEstimateHorizon::LONG_HALFLIFE: return "long"; |
| 26 | } // no default case, so the compiler can warn about missing cases |
| 27 | assert(false); |
| 28 | } |
| 29 | |
| 30 | namespace { |
| 31 |
no outgoing calls