| 244 | |
| 245 | template <typename T> |
| 246 | static T TrimAndParse(const std::string& int_str, const std::string& err) |
| 247 | { |
| 248 | const auto parsed{ToIntegral<T>(TrimString(int_str))}; |
| 249 | if (!parsed.has_value()) { |
| 250 | throw std::runtime_error(err + " '" + int_str + "'"); |
| 251 | } |
| 252 | return parsed.value(); |
| 253 | } |
| 254 | |
| 255 | static void MutateTxAddInput(CMutableTransaction& tx, const std::string& strInput) |
| 256 | { |
nothing calls this directly
no test coverage detected