@@ -803,7 +803,7 @@ impl OutboundPayments {
803
803
{
804
804
let onion_session_privs = self . add_new_pending_payment ( payment_hash, recipient_onion. clone ( ) , payment_id, None , route, None , None , entropy_source, best_block_height) ?;
805
805
self . pay_route_internal ( route, payment_hash, & recipient_onion, None , None , payment_id, None ,
806
- onion_session_privs, node_signer, best_block_height, & send_payment_along_path)
806
+ & onion_session_privs, node_signer, best_block_height, & send_payment_along_path)
807
807
. map_err ( |e| { self . remove_outbound_if_all_failed ( payment_id, & e) ; e } )
808
808
}
809
809
@@ -983,7 +983,7 @@ impl OutboundPayments {
983
983
984
984
let result = self . pay_route_internal (
985
985
& route, payment_hash, & recipient_onion, keysend_preimage, invoice_request, payment_id,
986
- Some ( route_params. final_value_msat ) , onion_session_privs, node_signer, best_block_height,
986
+ Some ( route_params. final_value_msat ) , & onion_session_privs, node_signer, best_block_height,
987
987
& send_payment_along_path
988
988
) ;
989
989
log_info ! (
@@ -1269,7 +1269,7 @@ impl OutboundPayments {
1269
1269
} ) ?;
1270
1270
1271
1271
let res = self . pay_route_internal ( & route, payment_hash, & recipient_onion,
1272
- keysend_preimage, None , payment_id, None , onion_session_privs, node_signer,
1272
+ keysend_preimage, None , payment_id, None , & onion_session_privs, node_signer,
1273
1273
best_block_height, & send_payment_along_path) ;
1274
1274
log_info ! ( logger, "Sending payment with id {} and hash {} returned {:?}" ,
1275
1275
payment_id, payment_hash, res) ;
@@ -1426,7 +1426,7 @@ impl OutboundPayments {
1426
1426
}
1427
1427
} ;
1428
1428
let res = self . pay_route_internal ( & route, payment_hash, & recipient_onion, keysend_preimage,
1429
- invoice_request. as_ref ( ) , payment_id, Some ( total_msat) , onion_session_privs, node_signer,
1429
+ invoice_request. as_ref ( ) , payment_id, Some ( total_msat) , & onion_session_privs, node_signer,
1430
1430
best_block_height, & send_payment_along_path) ;
1431
1431
log_info ! ( logger, "Result retrying payment id {}: {:?}" , & payment_id, res) ;
1432
1432
if let Err ( e) = res {
@@ -1542,7 +1542,7 @@ impl OutboundPayments {
1542
1542
1543
1543
let recipient_onion_fields = RecipientOnionFields :: spontaneous_empty ( ) ;
1544
1544
match self . pay_route_internal ( & route, payment_hash, & recipient_onion_fields,
1545
- None , None , payment_id, None , onion_session_privs, node_signer, best_block_height,
1545
+ None , None , payment_id, None , & onion_session_privs, node_signer, best_block_height,
1546
1546
& send_payment_along_path
1547
1547
) {
1548
1548
Ok ( ( ) ) => Ok ( ( payment_hash, payment_id) ) ,
@@ -1733,7 +1733,7 @@ impl OutboundPayments {
1733
1733
fn pay_route_internal < NS : Deref , F > (
1734
1734
& self , route : & Route , payment_hash : PaymentHash , recipient_onion : & RecipientOnionFields ,
1735
1735
keysend_preimage : Option < PaymentPreimage > , invoice_request : Option < & InvoiceRequest > ,
1736
- payment_id : PaymentId , recv_value_msat : Option < u64 > , onion_session_privs : Vec < [ u8 ; 32 ] > ,
1736
+ payment_id : PaymentId , recv_value_msat : Option < u64 > , onion_session_privs : & Vec < [ u8 ; 32 ] > ,
1737
1737
node_signer : & NS , best_block_height : u32 , send_payment_along_path : & F
1738
1738
) -> Result < ( ) , PaymentSendFailure >
1739
1739
where
@@ -1788,7 +1788,7 @@ impl OutboundPayments {
1788
1788
let mut path_res = send_payment_along_path ( SendAlongPathArgs {
1789
1789
path : & path, payment_hash : & payment_hash, recipient_onion, total_value,
1790
1790
cur_height, payment_id, keysend_preimage : & keysend_preimage, invoice_request,
1791
- session_priv_bytes
1791
+ session_priv_bytes : * session_priv_bytes
1792
1792
} ) ;
1793
1793
match path_res {
1794
1794
Ok ( _) => { } ,
@@ -1872,7 +1872,7 @@ impl OutboundPayments {
1872
1872
F : Fn ( SendAlongPathArgs ) -> Result < ( ) , APIError > ,
1873
1873
{
1874
1874
self . pay_route_internal ( route, payment_hash, & recipient_onion,
1875
- keysend_preimage, None , payment_id, recv_value_msat, onion_session_privs,
1875
+ keysend_preimage, None , payment_id, recv_value_msat, & onion_session_privs,
1876
1876
node_signer, best_block_height, & send_payment_along_path)
1877
1877
. map_err ( |e| { self . remove_outbound_if_all_failed ( payment_id, & e) ; e } )
1878
1878
}
0 commit comments