| 195 | } |
| 196 | |
| 197 | static CAmount ExtractAndValidateValue(const std::string& strValue) |
| 198 | { |
| 199 | if (std::optional<CAmount> parsed = ParseMoney(strValue)) { |
| 200 | return parsed.value(); |
| 201 | } else { |
| 202 | throw std::runtime_error("invalid TX output value"); |
| 203 | } |
| 204 | } |
| 205 | |
| 206 | static void MutateTxVersion(CMutableTransaction& tx, const std::string& cmdVal) |
| 207 | { |
no test coverage detected