@@ -409,7 +409,7 @@ impl OutboundPayments {
409
409
u32 , PaymentId , & Option < PaymentPreimage > , [ u8 ; 32 ] ) -> Result < ( ) , APIError >
410
410
{
411
411
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 ,
413
413
onion_session_privs, node_signer, best_block_height, & send_payment_along_path)
414
414
. map_err ( |e| { self . remove_outbound_if_all_failed ( payment_id, & e) ; e } )
415
415
}
@@ -431,7 +431,7 @@ impl OutboundPayments {
431
431
let payment_hash = PaymentHash ( Sha256 :: hash ( & preimage. 0 ) . into_inner ( ) ) ;
432
432
let onion_session_privs = self . add_new_pending_payment ( payment_hash, None , payment_id, & route, Retry :: Attempts ( 0 ) , None , entropy_source, best_block_height) ?;
433
433
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) {
435
435
Ok ( ( ) ) => Ok ( payment_hash) ,
436
436
Err ( e) => {
437
437
self . remove_outbound_if_all_failed ( payment_id, & e) ;
@@ -507,7 +507,7 @@ impl OutboundPayments {
507
507
508
508
let res = if let Some ( ( payment_hash, payment_secret, retry_strategy) ) = initial_send_info {
509
509
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)
511
511
} else {
512
512
self . retry_payment_with_route ( & route, payment_id, entropy_source, node_signer, best_block_height, send_payment_along_path)
513
513
} ;
@@ -616,7 +616,7 @@ impl OutboundPayments {
616
616
} ) ) ,
617
617
}
618
618
} ;
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)
620
620
}
621
621
622
622
pub ( super ) fn send_probe < ES : Deref , NS : Deref , F > (
@@ -642,7 +642,7 @@ impl OutboundPayments {
642
642
let route = Route { paths : vec ! [ hops] , payment_params : None } ;
643
643
let onion_session_privs = self . add_new_pending_payment ( payment_hash, None , payment_id, & route, Retry :: Attempts ( 0 ) , None , entropy_source, best_block_height) ?;
644
644
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) {
646
646
Ok ( ( ) ) => Ok ( ( payment_hash, payment_id) ) ,
647
647
Err ( e) => {
648
648
self . remove_outbound_if_all_failed ( payment_id, & e) ;
@@ -695,7 +695,7 @@ impl OutboundPayments {
695
695
}
696
696
}
697
697
698
- fn send_payment_internal < NS : Deref , F > (
698
+ fn pay_route_internal < NS : Deref , F > (
699
699
& self , route : & Route , payment_hash : PaymentHash , payment_secret : & Option < PaymentSecret > ,
700
700
keysend_preimage : Option < PaymentPreimage > , payment_id : PaymentId , recv_value_msat : Option < u64 > ,
701
701
onion_session_privs : Vec < [ u8 ; 32 ] > , node_signer : & NS , best_block_height : u32 ,
@@ -812,7 +812,7 @@ impl OutboundPayments {
812
812
F : Fn ( & Vec < RouteHop > , & Option < PaymentParameters > , & PaymentHash , & Option < PaymentSecret > , u64 ,
813
813
u32 , PaymentId , & Option < PaymentPreimage > , [ u8 ; 32 ] ) -> Result < ( ) , APIError >
814
814
{
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,
816
816
recv_value_msat, onion_session_privs, node_signer, best_block_height,
817
817
& send_payment_along_path)
818
818
. map_err ( |e| { self . remove_outbound_if_all_failed ( payment_id, & e) ; e } )
0 commit comments