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

Function MutateTxLocktime

src/bitcoin-tx.cpp:202–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200}
201
202static void MutateTxLocktime(CMutableTransaction& tx, const std::string& cmdVal)
203{
204 int64_t newLocktime;
205 if (!ParseInt64(cmdVal, &newLocktime) || newLocktime < 0LL || newLocktime > 0xffffffffLL)
206 throw std::runtime_error("Invalid TX locktime requested: '" + cmdVal + "'");
207
208 tx.nLockTime = (unsigned int) newLocktime;
209}
210
211static void MutateTxRBFOptIn(CMutableTransaction& tx, const std::string& strInIdx)
212{

Callers 1

MutateTxFunction · 0.85

Calls 1

ParseInt64Function · 0.70

Tested by

no test coverage detected