@@ -1089,8 +1089,8 @@ impl OutboundPayments {
1089
1089
1090
1090
let result = self . pay_route_internal (
1091
1091
& route, payment_hash, & recipient_onion, keysend_preimage, invoice_request, Some ( & bolt12_invoice) , payment_id,
1092
- Some ( route_params. final_value_msat ) , & onion_session_privs, node_signer , best_block_height ,
1093
- & send_payment_along_path
1092
+ Some ( route_params. final_value_msat ) , & onion_session_privs, false , node_signer ,
1093
+ best_block_height , & send_payment_along_path
1094
1094
) ;
1095
1095
log_info ! (
1096
1096
logger, "Sending payment with id {} and hash {} returned {:?}" , payment_id,
@@ -1486,7 +1486,7 @@ impl OutboundPayments {
1486
1486
} ) ?;
1487
1487
1488
1488
let res = self . pay_route_internal ( & route, payment_hash, & recipient_onion,
1489
- keysend_preimage, None , None , payment_id, None , & onion_session_privs, node_signer,
1489
+ keysend_preimage, None , None , payment_id, None , & onion_session_privs, false , node_signer,
1490
1490
best_block_height, & send_payment_along_path) ;
1491
1491
log_info ! ( logger, "Sending payment with id {} and hash {} returned {:?}" ,
1492
1492
payment_id, payment_hash, res) ;
@@ -1649,8 +1649,8 @@ impl OutboundPayments {
1649
1649
}
1650
1650
} ;
1651
1651
let res = self . pay_route_internal ( & route, payment_hash, & recipient_onion, keysend_preimage,
1652
- invoice_request. as_ref ( ) , bolt12_invoice. as_ref ( ) , payment_id, Some ( total_msat) , & onion_session_privs , node_signer ,
1653
- best_block_height, & send_payment_along_path) ;
1652
+ invoice_request. as_ref ( ) , bolt12_invoice. as_ref ( ) , payment_id, Some ( total_msat) ,
1653
+ & onion_session_privs , false , node_signer , best_block_height, & send_payment_along_path) ;
1654
1654
log_info ! ( logger, "Result retrying payment id {}: {:?}" , & payment_id, res) ;
1655
1655
if let Err ( e) = res {
1656
1656
self . handle_pay_route_err (
@@ -1814,8 +1814,8 @@ impl OutboundPayments {
1814
1814
1815
1815
let recipient_onion_fields = RecipientOnionFields :: spontaneous_empty ( ) ;
1816
1816
match self . pay_route_internal ( & route, payment_hash, & recipient_onion_fields,
1817
- None , None , None , payment_id, None , & onion_session_privs, node_signer , best_block_height ,
1818
- & send_payment_along_path
1817
+ None , None , None , payment_id, None , & onion_session_privs, false , node_signer ,
1818
+ best_block_height , & send_payment_along_path
1819
1819
) {
1820
1820
Ok ( ( ) ) => Ok ( ( payment_hash, payment_id) ) ,
1821
1821
Err ( e) => {
@@ -2063,7 +2063,7 @@ impl OutboundPayments {
2063
2063
& self , route : & Route , payment_hash : PaymentHash , recipient_onion : & RecipientOnionFields ,
2064
2064
keysend_preimage : Option < PaymentPreimage > , invoice_request : Option < & InvoiceRequest > , bolt12_invoice : Option < & PaidBolt12Invoice > ,
2065
2065
payment_id : PaymentId , recv_value_msat : Option < u64 > , onion_session_privs : & Vec < [ u8 ; 32 ] > ,
2066
- node_signer : & NS , best_block_height : u32 , send_payment_along_path : & F
2066
+ hold_htlcs_at_next_hop : bool , node_signer : & NS , best_block_height : u32 , send_payment_along_path : & F
2067
2067
) -> Result < ( ) , PaymentSendFailure >
2068
2068
where
2069
2069
NS :: Target : NodeSigner ,
@@ -2186,7 +2186,7 @@ impl OutboundPayments {
2186
2186
{
2187
2187
self . pay_route_internal ( route, payment_hash, & recipient_onion,
2188
2188
keysend_preimage, None , None , payment_id, recv_value_msat, & onion_session_privs,
2189
- node_signer, best_block_height, & send_payment_along_path)
2189
+ false , node_signer, best_block_height, & send_payment_along_path)
2190
2190
. map_err ( |e| { self . remove_outbound_if_all_failed ( payment_id, & e) ; e } )
2191
2191
}
2192
2192
0 commit comments