| 202 | } |
| 203 | |
| 204 | static CAmount ExtractAndValidateValue(const std::string& strValue) |
| 205 | { |
| 206 | if (std::optional<CAmount> parsed = ParseMoney(strValue)) { |
| 207 | return parsed.value(); |
| 208 | } else { |
| 209 | throw std::runtime_error("invalid TX output value"); |
| 210 | } |
| 211 | } |
| 212 | |
| 213 | static void MutateTxVersion(CMutableTransaction& tx, const std::string& cmdVal) |
| 214 | { |
no test coverage detected