mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-01 16:53:52 +02:00
psbt: use sighash type field to determine whether to remove non-witness utxos
Since the sighash type field is written for atypical sighash types, we can look at that field to figure out whether the psbt contains unnecessary transactions.
This commit is contained in:
@@ -244,7 +244,7 @@ PartiallySignedTransaction ProcessPSBT(const std::string& psbt_string, const std
|
||||
UpdatePSBTOutput(provider, psbtx, i);
|
||||
}
|
||||
|
||||
RemoveUnnecessaryTransactions(psbtx, /*sighash_type=*/std::nullopt);
|
||||
RemoveUnnecessaryTransactions(psbtx);
|
||||
|
||||
return psbtx;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user