@@ -822,7 +822,7 @@ impl OutboundPayments {
822
822
IH : Fn ( ) -> InFlightHtlcs ,
823
823
SP : Fn ( SendAlongPathArgs ) -> Result < ( ) , APIError > ,
824
824
{
825
- self . send_payment_internal ( payment_id, payment_hash, recipient_onion, None , retry_strategy,
825
+ self . send_payment_for_non_bolt12_invoice ( payment_id, payment_hash, recipient_onion, None , retry_strategy,
826
826
route_params, router, first_hops, & compute_inflight_htlcs, entropy_source, node_signer,
827
827
best_block_height, logger, pending_events, & send_payment_along_path)
828
828
}
@@ -845,7 +845,7 @@ impl OutboundPayments {
845
845
let preimage = payment_preimage
846
846
. unwrap_or_else ( || PaymentPreimage ( entropy_source. get_secure_random_bytes ( ) ) ) ;
847
847
let payment_hash = PaymentHash ( Sha256 :: hash ( & preimage. 0 ) . to_byte_array ( ) ) ;
848
- self . send_payment_internal ( payment_id, payment_hash, recipient_onion, Some ( preimage) ,
848
+ self . send_payment_for_non_bolt12_invoice ( payment_id, payment_hash, recipient_onion, Some ( preimage) ,
849
849
retry_strategy, route_params, router, first_hops, inflight_htlcs, entropy_source,
850
850
node_signer, best_block_height, logger, pending_events, send_payment_along_path)
851
851
. map ( |( ) | payment_hash)
@@ -1264,7 +1264,7 @@ impl OutboundPayments {
1264
1264
///
1265
1265
/// [`Event::PaymentPathFailed`]: crate::events::Event::PaymentPathFailed
1266
1266
/// [`Event::PaymentFailed`]: crate::events::Event::PaymentFailed
1267
- fn send_payment_internal < R : Deref , NS : Deref , ES : Deref , IH , SP , L : Deref > (
1267
+ fn send_payment_for_non_bolt12_invoice < R : Deref , NS : Deref , ES : Deref , IH , SP , L : Deref > (
1268
1268
& self , payment_id : PaymentId , payment_hash : PaymentHash , recipient_onion : RecipientOnionFields ,
1269
1269
keysend_preimage : Option < PaymentPreimage > , retry_strategy : Retry , mut route_params : RouteParameters ,
1270
1270
router : & R , first_hops : Vec < ChannelDetails > , inflight_htlcs : IH , entropy_source : & ES ,
0 commit comments