@@ -822,7 +822,7 @@ impl OutboundPayments {
822822 IH : Fn ( ) -> InFlightHtlcs ,
823823 SP : Fn ( SendAlongPathArgs ) -> Result < ( ) , APIError > ,
824824 {
825- self . send_payment_internal ( payment_id, payment_hash, recipient_onion, None , retry_strategy,
825+ self . send_payment_for_non_bolt12_invoice ( payment_id, payment_hash, recipient_onion, None , retry_strategy,
826826 route_params, router, first_hops, & compute_inflight_htlcs, entropy_source, node_signer,
827827 best_block_height, logger, pending_events, & send_payment_along_path)
828828 }
@@ -845,7 +845,7 @@ impl OutboundPayments {
845845 let preimage = payment_preimage
846846 . unwrap_or_else ( || PaymentPreimage ( entropy_source. get_secure_random_bytes ( ) ) ) ;
847847 let payment_hash = PaymentHash ( Sha256 :: hash ( & preimage. 0 ) . to_byte_array ( ) ) ;
848- self . send_payment_internal ( payment_id, payment_hash, recipient_onion, Some ( preimage) ,
848+ self . send_payment_for_non_bolt12_invoice ( payment_id, payment_hash, recipient_onion, Some ( preimage) ,
849849 retry_strategy, route_params, router, first_hops, inflight_htlcs, entropy_source,
850850 node_signer, best_block_height, logger, pending_events, send_payment_along_path)
851851 . map ( |( ) | payment_hash)
@@ -1264,7 +1264,7 @@ impl OutboundPayments {
12641264 ///
12651265 /// [`Event::PaymentPathFailed`]: crate::events::Event::PaymentPathFailed
12661266 /// [`Event::PaymentFailed`]: crate::events::Event::PaymentFailed
1267- fn send_payment_internal < R : Deref , NS : Deref , ES : Deref , IH , SP , L : Deref > (
1267+ fn send_payment_for_non_bolt12_invoice < R : Deref , NS : Deref , ES : Deref , IH , SP , L : Deref > (
12681268 & self , payment_id : PaymentId , payment_hash : PaymentHash , recipient_onion : RecipientOnionFields ,
12691269 keysend_preimage : Option < PaymentPreimage > , retry_strategy : Retry , mut route_params : RouteParameters ,
12701270 router : & R , first_hops : Vec < ChannelDetails > , inflight_htlcs : IH , entropy_source : & ES ,
0 commit comments