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

Function MutateTxLocktime

src/bitcoin-tx.cpp:216–223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

214}
215
216static void MutateTxLocktime(CMutableTransaction& tx, const std::string& cmdVal)
217{
218 int64_t newLocktime;
219 if (!ParseInt64(cmdVal, &newLocktime) || newLocktime < 0LL || newLocktime > 0xffffffffLL)
220 throw std::runtime_error("Invalid TX locktime requested: '" + cmdVal + "'");
221
222 tx.nLockTime = (unsigned int) newLocktime;
223}
224
225static void MutateTxRBFOptIn(CMutableTransaction& tx, const std::string& strInIdx)
226{

Callers 1

MutateTxFunction · 0.85

Calls 1

ParseInt64Function · 0.50

Tested by

no test coverage detected