MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / MutateTxVersion

Function MutateTxVersion

src/bitcoin-tx.cpp:193–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191}
192
193static 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
202static void MutateTxLocktime(CMutableTransaction& tx, const std::string& cmdVal)
203{

Callers 1

MutateTxFunction · 0.85

Calls 1

ParseInt64Function · 0.70

Tested by

no test coverage detected