File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -983,7 +983,22 @@ where
983
983
LdkEvent :: DiscardFunding { .. } => { } ,
984
984
LdkEvent :: HTLCIntercepted { .. } => { } ,
985
985
LdkEvent :: BumpTransaction ( _) => { } ,
986
- LdkEvent :: InvoiceRequestFailed { .. } => { } ,
986
+ LdkEvent :: InvoiceRequestFailed { payment_id } => {
987
+ log_error ! (
988
+ self . logger,
989
+ "Failed to request invoice for outbound BOLT12 payment {}" ,
990
+ payment_id
991
+ ) ;
992
+ let update = PaymentDetailsUpdate {
993
+ status : Some ( PaymentStatus :: Failed ) ,
994
+ ..PaymentDetailsUpdate :: new ( payment_id)
995
+ } ;
996
+ self . payment_store . update ( & update) . unwrap_or_else ( |e| {
997
+ log_error ! ( self . logger, "Failed to access payment store: {}" , e) ;
998
+ panic ! ( "Failed to access payment store" ) ;
999
+ } ) ;
1000
+ return ;
1001
+ } ,
987
1002
LdkEvent :: ConnectionNeeded { node_id, addresses } => {
988
1003
let runtime_lock = self . runtime . read ( ) . unwrap ( ) ;
989
1004
debug_assert ! ( runtime_lock. is_some( ) ) ;
You can’t perform that action at this time.
0 commit comments