@@ -1044,7 +1044,6 @@ impl OutboundPayments {
10441044 hash_map:: Entry :: Occupied ( entry) => match entry. get ( ) {
10451045 PendingOutboundPayment :: InvoiceReceived { .. } => {
10461046 let ( retryable_payment, onion_session_privs) = Self :: create_pending_payment (
1047- // FIXME: remove the bolt12_invoice here! we need to clean up this part!
10481047 payment_hash, recipient_onion. clone ( ) , keysend_preimage, None , Some ( bolt12_invoice. clone ( ) ) , & route,
10491048 Some ( retry_strategy) , payment_params, entropy_source, best_block_height,
10501049 ) ;
@@ -1056,7 +1055,6 @@ impl OutboundPayments {
10561055 invoice_request
10571056 } else { unreachable ! ( ) } ;
10581057 let ( retryable_payment, onion_session_privs) = Self :: create_pending_payment (
1059- // FIXME: We do not need anymore the bolt12_invoice here! we need to clean up this part!
10601058 payment_hash, recipient_onion. clone ( ) , keysend_preimage, Some ( invreq) , Some ( bolt12_invoice. clone ( ) ) , & route,
10611059 Some ( retry_strategy) , payment_params, entropy_source, best_block_height
10621060 ) ;
@@ -2067,7 +2065,6 @@ impl OutboundPayments {
20672065 let mut outbounds = self . pending_outbound_payments . lock ( ) . unwrap ( ) ;
20682066 let mut pending_events = pending_events. lock ( ) . unwrap ( ) ;
20692067 for source in sources {
2070- // TODO(vincenzopalazzo): This should contain the paid bolt12 invoice.
20712068 if let HTLCSource :: OutboundRoute { session_priv, payment_id, path, .. } = source {
20722069 let mut session_priv_bytes = [ 0 ; 32 ] ;
20732070 session_priv_bytes. copy_from_slice ( & session_priv[ ..] ) ;
0 commit comments