MCPcopy Create free account
hub / github.com/LUX-Core/lux / UpdateTransaction

Function UpdateTransaction

src/script/sign.cpp:204–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202}
203
204void UpdateTransaction(CMutableTransaction& tx, unsigned int nIn, const SignatureData& data)
205{
206 assert(tx.vin.size() > nIn);
207 tx.vin[nIn].scriptSig = data.scriptSig;
208 if (!data.scriptWitness.IsNull() || tx.wit.vtxinwit.size() > nIn) {
209 tx.wit.vtxinwit.resize(tx.vin.size());
210 tx.wit.vtxinwit[nIn].scriptWitness = data.scriptWitness;
211 }
212}
213
214bool SignSignature(const CKeyStore &keystore, const CScript& fromPubKey, CMutableTransaction& txTo, unsigned int nIn, const CAmount& amount, int nHashType)
215{

Callers 6

MutateTxSignFunction · 0.85
wallet.cppFile · 0.85
SignFinalTransactionMethod · 0.85
signrawtransactionFunction · 0.85
SignSignatureFunction · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85

Calls 3

sizeMethod · 0.45
IsNullMethod · 0.45
resizeMethod · 0.45

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.68