refactor: Use C++17 std::array deduction for ALL_FEE_ESTIMATE_HORIZONS

This commit is contained in:
MarcoFalke
2021-01-03 18:44:02 +01:00
parent fa39cdd072
commit aaaa987840
4 changed files with 14 additions and 13 deletions

View File

@@ -1160,7 +1160,7 @@ static RPCHelpMan estimaterawfee()
UniValue result(UniValue::VOBJ);
for (const FeeEstimateHorizon horizon : {FeeEstimateHorizon::SHORT_HALFLIFE, FeeEstimateHorizon::MED_HALFLIFE, FeeEstimateHorizon::LONG_HALFLIFE}) {
for (const FeeEstimateHorizon horizon : ALL_FEE_ESTIMATE_HORIZONS) {
CFeeRate feeRate;
EstimationResult buckets;