@@ -811,7 +811,7 @@ impl OutboundPayments {
811
811
{
812
812
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) ?;
813
813
self . pay_route_internal ( route, payment_hash, & recipient_onion, None , None , payment_id, None ,
814
- onion_session_privs, node_signer, best_block_height, & send_payment_along_path)
814
+ & onion_session_privs, node_signer, best_block_height, & send_payment_along_path)
815
815
. map_err ( |e| { self . remove_outbound_if_all_failed ( payment_id, & e) ; e } )
816
816
}
817
817
@@ -991,7 +991,7 @@ impl OutboundPayments {
991
991
992
992
let result = self . pay_route_internal (
993
993
& route, payment_hash, & recipient_onion, keysend_preimage, invoice_request, payment_id,
994
- Some ( route_params. final_value_msat ) , onion_session_privs, node_signer, best_block_height,
994
+ Some ( route_params. final_value_msat ) , & onion_session_privs, node_signer, best_block_height,
995
995
& send_payment_along_path
996
996
) ;
997
997
log_info ! (
@@ -1276,7 +1276,7 @@ impl OutboundPayments {
1276
1276
} ) ?;
1277
1277
1278
1278
let res = self . pay_route_internal ( & route, payment_hash, & recipient_onion,
1279
- keysend_preimage, None , payment_id, None , onion_session_privs, node_signer,
1279
+ keysend_preimage, None , payment_id, None , & onion_session_privs, node_signer,
1280
1280
best_block_height, & send_payment_along_path) ;
1281
1281
log_info ! ( logger, "Sending payment with id {} and hash {} returned {:?}" ,
1282
1282
payment_id, payment_hash, res) ;
@@ -1433,7 +1433,7 @@ impl OutboundPayments {
1433
1433
}
1434
1434
} ;
1435
1435
let res = self . pay_route_internal ( & route, payment_hash, & recipient_onion, keysend_preimage,
1436
- invoice_request. as_ref ( ) , payment_id, Some ( total_msat) , onion_session_privs, node_signer,
1436
+ invoice_request. as_ref ( ) , payment_id, Some ( total_msat) , & onion_session_privs, node_signer,
1437
1437
best_block_height, & send_payment_along_path) ;
1438
1438
log_info ! ( logger, "Result retrying payment id {}: {:?}" , & payment_id, res) ;
1439
1439
if let Err ( e) = res {
@@ -1549,7 +1549,7 @@ impl OutboundPayments {
1549
1549
1550
1550
let recipient_onion_fields = RecipientOnionFields :: spontaneous_empty ( ) ;
1551
1551
match self . pay_route_internal ( & route, payment_hash, & recipient_onion_fields,
1552
- None , None , payment_id, None , onion_session_privs, node_signer, best_block_height,
1552
+ None , None , payment_id, None , & onion_session_privs, node_signer, best_block_height,
1553
1553
& send_payment_along_path
1554
1554
) {
1555
1555
Ok ( ( ) ) => Ok ( ( payment_hash, payment_id) ) ,
@@ -1740,7 +1740,7 @@ impl OutboundPayments {
1740
1740
fn pay_route_internal < NS : Deref , F > (
1741
1741
& self , route : & Route , payment_hash : PaymentHash , recipient_onion : & RecipientOnionFields ,
1742
1742
keysend_preimage : Option < PaymentPreimage > , invoice_request : Option < & InvoiceRequest > ,
1743
- payment_id : PaymentId , recv_value_msat : Option < u64 > , onion_session_privs : Vec < [ u8 ; 32 ] > ,
1743
+ payment_id : PaymentId , recv_value_msat : Option < u64 > , onion_session_privs : & Vec < [ u8 ; 32 ] > ,
1744
1744
node_signer : & NS , best_block_height : u32 , send_payment_along_path : & F
1745
1745
) -> Result < ( ) , PaymentSendFailure >
1746
1746
where
@@ -1795,7 +1795,7 @@ impl OutboundPayments {
1795
1795
let mut path_res = send_payment_along_path ( SendAlongPathArgs {
1796
1796
path : & path, payment_hash : & payment_hash, recipient_onion, total_value,
1797
1797
cur_height, payment_id, keysend_preimage : & keysend_preimage, invoice_request,
1798
- session_priv_bytes
1798
+ session_priv_bytes : * session_priv_bytes
1799
1799
} ) ;
1800
1800
match path_res {
1801
1801
Ok ( _) => { } ,
@@ -1879,7 +1879,7 @@ impl OutboundPayments {
1879
1879
F : Fn ( SendAlongPathArgs ) -> Result < ( ) , APIError > ,
1880
1880
{
1881
1881
self . pay_route_internal ( route, payment_hash, & recipient_onion,
1882
- keysend_preimage, None , payment_id, recv_value_msat, onion_session_privs,
1882
+ keysend_preimage, None , payment_id, recv_value_msat, & onion_session_privs,
1883
1883
node_signer, best_block_height, & send_payment_along_path)
1884
1884
. map_err ( |e| { self . remove_outbound_if_all_failed ( payment_id, & e) ; e } )
1885
1885
}
0 commit comments