| 204 | } |
| 205 | |
| 206 | static void MutateTxVersion(CMutableTransaction& tx, const std::string& cmdVal) |
| 207 | { |
| 208 | int64_t newVersion; |
| 209 | if (!ParseInt64(cmdVal, &newVersion) || newVersion < 1 || newVersion > TX_MAX_STANDARD_VERSION) { |
| 210 | throw std::runtime_error("Invalid TX version requested: '" + cmdVal + "'"); |
| 211 | } |
| 212 | |
| 213 | tx.nVersion = (int) newVersion; |
| 214 | } |
| 215 | |
| 216 | static void MutateTxLocktime(CMutableTransaction& tx, const std::string& cmdVal) |
| 217 | { |
no test coverage detected