We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3a43010 commit 630d963Copy full SHA for 630d963
1 file changed
src/wallet/mod.rs
@@ -690,12 +690,14 @@ impl Wallet {
690
},
691
}
692
693
- let mut tx = psbt.unsigned_tx;
694
- for (txin, input) in tx.input.iter_mut().zip(psbt.inputs.into_iter()) {
695
- txin.witness = input.final_script_witness.unwrap_or_default();
+ match psbt.extract_tx() {
+ Ok(tx) => Ok(tx),
+ Err(bitcoin::psbt::ExtractTxError::MissingInputValue { tx }) => Ok(tx),
696
+ Err(e) => {
697
+ log_error!(self.logger, "Failed to extract transaction: {}", e);
698
+ Err(())
699
+ }
700
-
- Ok(tx)
701
702
703
#[allow(deprecated)]
0 commit comments