| 191 | } |
| 192 | |
| 193 | static void MutateTxVersion(CMutableTransaction& tx, const std::string& cmdVal) |
| 194 | { |
| 195 | int64_t newVersion; |
| 196 | if (!ParseInt64(cmdVal, &newVersion) || newVersion < 1 || newVersion > CTransaction::MAX_STANDARD_VERSION) |
| 197 | throw std::runtime_error("Invalid TX version requested: '" + cmdVal + "'"); |
| 198 | |
| 199 | tx.nVersion = (int) newVersion; |
| 200 | } |
| 201 | |
| 202 | static void MutateTxLocktime(CMutableTransaction& tx, const std::string& cmdVal) |
| 203 | { |
no test coverage detected