| 220 | } |
| 221 | |
| 222 | static void MutateTxLocktime(CMutableTransaction& tx, const std::string& cmdVal) |
| 223 | { |
| 224 | const auto locktime{ToIntegral<uint32_t>(cmdVal)}; |
| 225 | if (!locktime) { |
| 226 | throw std::runtime_error("Invalid TX locktime requested: '" + cmdVal + "'"); |
| 227 | } |
| 228 | tx.nLockTime = *locktime; |
| 229 | } |
| 230 | |
| 231 | static void MutateTxRBFOptIn(CMutableTransaction& tx, const std::string& strInIdx) |
| 232 | { |