@@ -409,7 +409,7 @@ impl OutboundPayments {
409409 u32 , PaymentId , & Option < PaymentPreimage > , [ u8 ; 32 ] ) -> Result < ( ) , APIError >
410410 {
411411 let onion_session_privs = self . add_new_pending_payment ( payment_hash, * payment_secret, payment_id, route, Retry :: Attempts ( 0 ) , None , entropy_source, best_block_height) ?;
412- self . send_payment_internal ( route, payment_hash, payment_secret, None , payment_id, None ,
412+ self . pay_route_internal ( route, payment_hash, payment_secret, None , payment_id, None ,
413413 onion_session_privs, node_signer, best_block_height, & send_payment_along_path)
414414 . map_err ( |e| { self . remove_outbound_if_all_failed ( payment_id, & e) ; e } )
415415 }
@@ -431,7 +431,7 @@ impl OutboundPayments {
431431 let payment_hash = PaymentHash ( Sha256 :: hash ( & preimage. 0 ) . into_inner ( ) ) ;
432432 let onion_session_privs = self . add_new_pending_payment ( payment_hash, None , payment_id, & route, Retry :: Attempts ( 0 ) , None , entropy_source, best_block_height) ?;
433433
434- match self . send_payment_internal ( route, payment_hash, & None , Some ( preimage) , payment_id, None , onion_session_privs, node_signer, best_block_height, & send_payment_along_path) {
434+ match self . pay_route_internal ( route, payment_hash, & None , Some ( preimage) , payment_id, None , onion_session_privs, node_signer, best_block_height, & send_payment_along_path) {
435435 Ok ( ( ) ) => Ok ( payment_hash) ,
436436 Err ( e) => {
437437 self . remove_outbound_if_all_failed ( payment_id, & e) ;
@@ -508,7 +508,7 @@ impl OutboundPayments {
508508
509509 let res = if let Some ( ( payment_hash, payment_secret, retry_strategy) ) = initial_send_info {
510510 let onion_session_privs = self . add_new_pending_payment ( payment_hash, * payment_secret, payment_id, & route, retry_strategy, Some ( route_params. clone ( ) ) , entropy_source, best_block_height) ?;
511- self . send_payment_internal ( & route, payment_hash, payment_secret, None , payment_id, None , onion_session_privs, node_signer, best_block_height, send_payment_along_path)
511+ self . pay_route_internal ( & route, payment_hash, payment_secret, None , payment_id, None , onion_session_privs, node_signer, best_block_height, send_payment_along_path)
512512 } else {
513513 self . retry_payment_with_route ( & route, payment_id, entropy_source, node_signer, best_block_height, send_payment_along_path)
514514 } ;
@@ -617,7 +617,7 @@ impl OutboundPayments {
617617 } ) ) ,
618618 }
619619 } ;
620- self . send_payment_internal ( route, payment_hash, & payment_secret, None , payment_id, Some ( total_msat) , onion_session_privs, node_signer, best_block_height, & send_payment_along_path)
620+ self . pay_route_internal ( route, payment_hash, & payment_secret, None , payment_id, Some ( total_msat) , onion_session_privs, node_signer, best_block_height, & send_payment_along_path)
621621 }
622622
623623 pub ( super ) fn send_probe < ES : Deref , NS : Deref , F > (
@@ -643,7 +643,7 @@ impl OutboundPayments {
643643 let route = Route { paths : vec ! [ hops] , payment_params : None } ;
644644 let onion_session_privs = self . add_new_pending_payment ( payment_hash, None , payment_id, & route, Retry :: Attempts ( 0 ) , None , entropy_source, best_block_height) ?;
645645
646- match self . send_payment_internal ( & route, payment_hash, & None , None , payment_id, None , onion_session_privs, node_signer, best_block_height, & send_payment_along_path) {
646+ match self . pay_route_internal ( & route, payment_hash, & None , None , payment_id, None , onion_session_privs, node_signer, best_block_height, & send_payment_along_path) {
647647 Ok ( ( ) ) => Ok ( ( payment_hash, payment_id) ) ,
648648 Err ( e) => {
649649 self . remove_outbound_if_all_failed ( payment_id, & e) ;
@@ -696,7 +696,7 @@ impl OutboundPayments {
696696 }
697697 }
698698
699- fn send_payment_internal < NS : Deref , F > (
699+ fn pay_route_internal < NS : Deref , F > (
700700 & self , route : & Route , payment_hash : PaymentHash , payment_secret : & Option < PaymentSecret > ,
701701 keysend_preimage : Option < PaymentPreimage > , payment_id : PaymentId , recv_value_msat : Option < u64 > ,
702702 onion_session_privs : Vec < [ u8 ; 32 ] > , node_signer : & NS , best_block_height : u32 ,
@@ -813,7 +813,7 @@ impl OutboundPayments {
813813 F : Fn ( & Vec < RouteHop > , & Option < PaymentParameters > , & PaymentHash , & Option < PaymentSecret > , u64 ,
814814 u32 , PaymentId , & Option < PaymentPreimage > , [ u8 ; 32 ] ) -> Result < ( ) , APIError >
815815 {
816- self . send_payment_internal ( route, payment_hash, payment_secret, keysend_preimage, payment_id,
816+ self . pay_route_internal ( route, payment_hash, payment_secret, keysend_preimage, payment_id,
817817 recv_value_msat, onion_session_privs, node_signer, best_block_height,
818818 & send_payment_along_path)
819819 . map_err ( |e| { self . remove_outbound_if_all_failed ( payment_id, & e) ; e } )
0 commit comments