Replace PSBT::GetInputUTXO with PSBTInput::GetUTXO

Now that PSBTInput's track their own prevouts, there's no need for a
PSBT global function to fetch input specific data.
This commit is contained in:
Ava Chow
2024-07-22 17:14:15 -04:00
parent 82c9fe3179
commit 092de4f1f6
4 changed files with 21 additions and 24 deletions

View File

@@ -68,9 +68,9 @@ FUZZ_TARGET(psbt)
(void)output.IsNull();
}
for (size_t i = 0; i < psbt.inputs.size(); ++i) {
for (const PSBTInput& input : psbt.inputs) {
CTxOut tx_out;
if (psbt.GetInputUTXO(tx_out, i)) {
if (input.GetUTXO(tx_out)) {
(void)tx_out.IsNull();
(void)tx_out.ToString();
}