| 90 | } |
| 91 | |
| 92 | bool FeeModeFromString(std::string_view mode_string, FeeEstimateMode& fee_estimate_mode) |
| 93 | { |
| 94 | auto searchkey = ToUpper(mode_string); |
| 95 | for (const auto& pair : FeeModeMap()) { |
| 96 | if (ToUpper(pair.first) == searchkey) { |
| 97 | fee_estimate_mode = pair.second; |
| 98 | return true; |
| 99 | } |
| 100 | } |
| 101 | return false; |
| 102 | } |
| 103 | |
| 104 | bilingual_str PSBTErrorString(PSBTError err) |
| 105 | { |