@@ -805,7 +805,7 @@ impl OutboundPayments {
805
805
IH : Fn ( ) -> InFlightHtlcs ,
806
806
SP : Fn ( SendAlongPathArgs ) -> Result < ( ) , APIError > ,
807
807
{
808
- self . send_payment_internal ( payment_id, payment_hash, recipient_onion, None , retry_strategy,
808
+ self . send_payment_for_non_bolt12_invoice ( payment_id, payment_hash, recipient_onion, None , retry_strategy,
809
809
route_params, router, first_hops, & compute_inflight_htlcs, entropy_source, node_signer,
810
810
best_block_height, logger, pending_events, & send_payment_along_path)
811
811
}
@@ -828,7 +828,7 @@ impl OutboundPayments {
828
828
let preimage = payment_preimage
829
829
. unwrap_or_else ( || PaymentPreimage ( entropy_source. get_secure_random_bytes ( ) ) ) ;
830
830
let payment_hash = PaymentHash ( Sha256 :: hash ( & preimage. 0 ) . to_byte_array ( ) ) ;
831
- self . send_payment_internal ( payment_id, payment_hash, recipient_onion, Some ( preimage) ,
831
+ self . send_payment_for_non_bolt12_invoice ( payment_id, payment_hash, recipient_onion, Some ( preimage) ,
832
832
retry_strategy, route_params, router, first_hops, inflight_htlcs, entropy_source,
833
833
node_signer, best_block_height, logger, pending_events, send_payment_along_path)
834
834
. map ( |( ) | payment_hash)
@@ -1247,7 +1247,7 @@ impl OutboundPayments {
1247
1247
///
1248
1248
/// [`Event::PaymentPathFailed`]: crate::events::Event::PaymentPathFailed
1249
1249
/// [`Event::PaymentFailed`]: crate::events::Event::PaymentFailed
1250
- fn send_payment_internal < R : Deref , NS : Deref , ES : Deref , IH , SP , L : Deref > (
1250
+ fn send_payment_for_non_bolt12_invoice < R : Deref , NS : Deref , ES : Deref , IH , SP , L : Deref > (
1251
1251
& self , payment_id : PaymentId , payment_hash : PaymentHash , recipient_onion : RecipientOnionFields ,
1252
1252
keysend_preimage : Option < PaymentPreimage > , retry_strategy : Retry , mut route_params : RouteParameters ,
1253
1253
router : & R , first_hops : Vec < ChannelDetails > , inflight_htlcs : IH , entropy_source : & ES ,
0 commit comments