File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -237,13 +237,13 @@ where
237
237
// wallet descriptor this technically shouldn't ever happen, but better safe than sorry.
238
238
for input in & psbt. inputs {
239
239
if input. witness_utxo . is_none ( ) {
240
- return Err ( Error :: FundingTxNonWitnessOuputSpend ) ;
240
+ 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." ) ;
241
242
}
242
243
}
243
244
244
- let finalized = locked_wallet. sign ( & mut psbt, SignOptions :: default ( ) ) ?;
245
- if !finalized {
246
- return Err ( Error :: FundingTxNotFinalized ) ;
245
+ if !locked_wallet. sign ( & mut psbt, SignOptions :: default ( ) ) ? {
246
+ return Err ( Error :: FundingTxCreationFailed ) ;
247
247
}
248
248
249
249
Ok ( psbt. extract_tx ( ) )
You can’t perform that action at this time.
0 commit comments