Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/rpcwallet.cpp
Show First 20 Lines • Show All 5,174 Lines • ▼ Show 20 Lines | for (size_t i = 0; i < txConst->vin.size(); ++i) { | ||||
for (const auto &pubkey_it : sigdata.misc_pubkeys) { | for (const auto &pubkey_it : sigdata.misc_pubkeys) { | ||||
AddKeypathToMap(pwallet, pubkey_it.first, input.hd_keypaths); | AddKeypathToMap(pwallet, pubkey_it.first, input.hd_keypaths); | ||||
} | } | ||||
} | } | ||||
} | } | ||||
// Fill in the bip32 keypaths and redeemscripts for the outputs so that | // Fill in the bip32 keypaths and redeemscripts for the outputs so that | ||||
// hardware wallets can identify change | // hardware wallets can identify change | ||||
for (unsigned int i = 0; i < txConst->vout.size(); ++i) { | for (size_t i = 0; i < txConst->vout.size(); ++i) { | ||||
const CTxOut &out = txConst->vout.at(i); | const CTxOut &out = txConst->vout.at(i); | ||||
PSBTOutput &psbt_out = psbtx.outputs.at(i); | PSBTOutput &psbt_out = psbtx.outputs.at(i); | ||||
// Dummy tx so we can use ProduceSignature to get stuff out | // Dummy tx so we can use ProduceSignature to get stuff out | ||||
CMutableTransaction dummy_tx; | CMutableTransaction dummy_tx; | ||||
dummy_tx.vin.push_back(CTxIn()); | dummy_tx.vin.push_back(CTxIn()); | ||||
dummy_tx.vout.push_back(CTxOut()); | dummy_tx.vout.push_back(CTxOut()); | ||||
▲ Show 20 Lines • Show All 327 Lines • Show Last 20 Lines |