mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-29 14:59:39 -04:00
Update FinalizeAndExtract for v2
This commit is contained in:
parent
2e8f0caa8c
commit
60d15c18ba
1 changed files with 2 additions and 2 deletions
|
@ -608,7 +608,7 @@ bool FinalizePSBT(PartiallySignedTransaction& psbtx)
|
|||
// script.
|
||||
bool complete = true;
|
||||
const PrecomputedTransactionData txdata = PrecomputePSBTData(psbtx);
|
||||
for (unsigned int i = 0; i < psbtx.tx->vin.size(); ++i) {
|
||||
for (unsigned int i = 0; i < psbtx.inputs.size(); ++i) {
|
||||
complete &= SignPSBTInput(DUMMY_SIGNING_PROVIDER, psbtx, i, &txdata, SIGHASH_ALL, nullptr, true);
|
||||
}
|
||||
|
||||
|
@ -623,7 +623,7 @@ bool FinalizeAndExtractPSBT(PartiallySignedTransaction& psbtx, CMutableTransacti
|
|||
return false;
|
||||
}
|
||||
|
||||
result = *psbtx.tx;
|
||||
result = psbtx.GetUnsignedTx();
|
||||
for (unsigned int i = 0; i < result.vin.size(); ++i) {
|
||||
result.vin[i].scriptSig = psbtx.inputs[i].final_script_sig;
|
||||
result.vin[i].scriptWitness = psbtx.inputs[i].final_script_witness;
|
||||
|
|
Loading…
Add table
Reference in a new issue