MCPcopy Create free account
hub / github.com/ElementsProject/elements / MutateTxVersion

Function MutateTxVersion

src/bitcoin-tx.cpp:206–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

204}
205
206static 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
216static void MutateTxLocktime(CMutableTransaction& tx, const std::string& cmdVal)
217{

Callers 1

MutateTxFunction · 0.85

Calls 1

ParseInt64Function · 0.50

Tested by

no test coverage detected