@@ -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) ;
@@ -507,7 +507,7 @@ impl OutboundPayments {
507507
508508 let res = if let Some ( ( payment_hash, payment_secret, retry_strategy) ) = initial_send_info {
509509 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) ?;
510- 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)
510+ 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)
511511 } else {
512512 self . retry_payment_with_route ( & route, payment_id, entropy_source, node_signer, best_block_height, send_payment_along_path)
513513 } ;
@@ -616,7 +616,7 @@ impl OutboundPayments {
616616 } ) ) ,
617617 }
618618 } ;
619- 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)
619+ 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)
620620 }
621621
622622 pub ( super ) fn send_probe < ES : Deref , NS : Deref , F > (
@@ -642,7 +642,7 @@ impl OutboundPayments {
642642 let route = Route { paths : vec ! [ hops] , payment_params : None } ;
643643 let onion_session_privs = self . add_new_pending_payment ( payment_hash, None , payment_id, & route, Retry :: Attempts ( 0 ) , None , entropy_source, best_block_height) ?;
644644
645- 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) {
645+ 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) {
646646 Ok ( ( ) ) => Ok ( ( payment_hash, payment_id) ) ,
647647 Err ( e) => {
648648 self . remove_outbound_if_all_failed ( payment_id, & e) ;
@@ -695,7 +695,7 @@ impl OutboundPayments {
695695 }
696696 }
697697
698- fn send_payment_internal < NS : Deref , F > (
698+ fn pay_route_internal < NS : Deref , F > (
699699 & self , route : & Route , payment_hash : PaymentHash , payment_secret : & Option < PaymentSecret > ,
700700 keysend_preimage : Option < PaymentPreimage > , payment_id : PaymentId , recv_value_msat : Option < u64 > ,
701701 onion_session_privs : Vec < [ u8 ; 32 ] > , node_signer : & NS , best_block_height : u32 ,
@@ -812,7 +812,7 @@ impl OutboundPayments {
812812 F : Fn ( & Vec < RouteHop > , & Option < PaymentParameters > , & PaymentHash , & Option < PaymentSecret > , u64 ,
813813 u32 , PaymentId , & Option < PaymentPreimage > , [ u8 ; 32 ] ) -> Result < ( ) , APIError >
814814 {
815- self . send_payment_internal ( route, payment_hash, payment_secret, keysend_preimage, payment_id,
815+ self . pay_route_internal ( route, payment_hash, payment_secret, keysend_preimage, payment_id,
816816 recv_value_msat, onion_session_privs, node_signer, best_block_height,
817817 & send_payment_along_path)
818818 . map_err ( |e| { self . remove_outbound_if_all_failed ( payment_id, & e) ; e } )
0 commit comments