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

Function MutateTxLocktime

src/bitcoin-tx.cpp:222–229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

220}
221
222static 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
231static void MutateTxRBFOptIn(CMutableTransaction& tx, const std::string& strInIdx)
232{

Callers 1

MutateTxFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected