We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e2a6bb commit 37752bfCopy full SHA for 37752bf
src/access.rs
@@ -237,13 +237,13 @@ where
237
// wallet descriptor this technically shouldn't ever happen, but better safe than sorry.
238
for input in &psbt.inputs {
239
if input.witness_utxo.is_none() {
240
- return Err(Error::FundingTxNonWitnessOuputSpend);
+ log_error!(self.logger, "Tried to spend a non-witness funding output. This must not ever happen. Panicking!");
241
+ panic!("Tried to spend a non-witness funding output. This must not ever happen.");
242
}
243
244
- let finalized = locked_wallet.sign(&mut psbt, SignOptions::default())?;
245
- if !finalized {
246
- return Err(Error::FundingTxNotFinalized);
+ if !locked_wallet.sign(&mut psbt, SignOptions::default())? {
+ return Err(Error::FundingTxCreationFailed);
247
248
249
Ok(psbt.extract_tx())
0 commit comments