| 55 | } |
| 56 | |
| 57 | bool FeeModeFromString(const std::string& mode_string, FeeEstimateMode& fee_estimate_mode) |
| 58 | { |
| 59 | auto searchkey = ToUpper(mode_string); |
| 60 | for (const auto& pair : FeeModeMap()) { |
| 61 | if (ToUpper(pair.first) == searchkey) { |
| 62 | fee_estimate_mode = pair.second; |
| 63 | return true; |
| 64 | } |
| 65 | } |
| 66 | return false; |
| 67 | } |