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
237237 // wallet descriptor this technically shouldn't ever happen, but better safe than sorry.
238238 for input in & psbt. inputs {
239239 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." ) ;
241242 }
242243 }
243244
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 ) ;
247247 }
248248
249249 Ok ( psbt. extract_tx ( ) )
You can’t perform that action at this time.
0 commit comments