Add PSBTInput::GetOutPoint

Helper for getting the PSBTInput COutPoint
This commit is contained in:
Ava Chow
2024-07-22 17:14:27 -04:00
parent 543d3e1cdc
commit 1b7d323a72
4 changed files with 12 additions and 6 deletions

View File

@@ -130,7 +130,7 @@ PSBTAnalysis AnalyzePSBT(PartiallySignedTransaction psbtx)
mtx.vin[i].scriptSig = input.final_script_sig;
mtx.vin[i].scriptWitness = input.final_script_witness;
newcoin.nHeight = 1;
view.AddCoin(psbtx.tx->vin[i].prevout, std::move(newcoin), true);
view.AddCoin(input.GetOutPoint(), std::move(newcoin), true);
}
}