| 48 | } |
| 49 | |
| 50 | bool FeeModeFromString(const std::string& mode_string, FeeEstimateMode& fee_estimate_mode) { |
| 51 | static const std::map<std::string, FeeEstimateMode> fee_modes = { |
| 52 | {"UNSET", FeeEstimateMode::UNSET}, |
| 53 | {"ECONOMICAL", FeeEstimateMode::ECONOMICAL}, |
| 54 | {"CONSERVATIVE", FeeEstimateMode::CONSERVATIVE}, |
| 55 | }; |
| 56 | auto mode = fee_modes.find(mode_string); |
| 57 | |
| 58 | if (mode == fee_modes.end()) return false; |
| 59 | |
| 60 | fee_estimate_mode = mode->second; |
| 61 | return true; |
| 62 | } |
| 63 | |
| 64 | /** |
| 65 | * We will instantiate an instance of this class to track transactions that were |
no test coverage detected