@@ -15,7 +15,7 @@ use bitcoin::secp256k1::{self, Secp256k1, SecretKey};
1515use lightning_invoice:: Bolt11Invoice ;
1616
1717use crate :: blinded_path:: { IntroductionNode , NodeIdLookUp } ;
18- use crate :: events:: { self , PaidInvoice , PaymentFailureReason } ;
18+ use crate :: events:: { self , PaidBolt12Invoice , PaymentFailureReason } ;
1919use crate :: ln:: channel_state:: ChannelDetails ;
2020use crate :: ln:: channelmanager:: { EventCompletionAction , HTLCSource , PaymentId } ;
2121use crate :: ln:: onion_utils;
@@ -107,7 +107,7 @@ pub(crate) enum PendingOutboundPayment {
107107 invoice_request : Option < InvoiceRequest > ,
108108 // Storing the BOLT 12 invoice here to allow Proof of Payment after
109109 // the payment is made.
110- bolt12_invoice : Option < PaidInvoice > ,
110+ bolt12_invoice : Option < PaidBolt12Invoice > ,
111111 custom_tlvs : Vec < ( u64 , Vec < u8 > ) > ,
112112 pending_amt_msat : u64 ,
113113 /// Used to track the fee paid. Present iff the payment was serialized on 0.0.103+.
@@ -157,7 +157,7 @@ impl_writeable_tlv_based!(RetryableInvoiceRequest, {
157157} ) ;
158158
159159impl PendingOutboundPayment {
160- fn bolt12_invoice ( & self ) -> Option < & PaidInvoice > {
160+ fn bolt12_invoice ( & self ) -> Option < & PaidBolt12Invoice > {
161161 match self {
162162 PendingOutboundPayment :: Retryable { bolt12_invoice, .. } => bolt12_invoice. as_ref ( ) ,
163163 _ => None ,
@@ -966,7 +966,7 @@ impl OutboundPayments {
966966 if let Some ( max_fee_msat) = params_config. max_total_routing_fee_msat {
967967 route_params. max_total_routing_fee_msat = Some ( max_fee_msat) ;
968968 }
969- let invoice = PaidInvoice :: Bolt12Invoice ( invoice. clone ( ) ) ;
969+ let invoice = PaidBolt12Invoice :: Bolt12Invoice ( invoice. clone ( ) ) ;
970970 self . send_payment_for_bolt12_invoice_internal (
971971 payment_id, payment_hash, None , None , Some ( invoice) , route_params, retry_strategy, router, first_hops,
972972 inflight_htlcs, entropy_source, node_signer, node_id_lookup, secp_ctx, best_block_height,
@@ -979,7 +979,7 @@ impl OutboundPayments {
979979 > (
980980 & self , payment_id : PaymentId , payment_hash : PaymentHash ,
981981 keysend_preimage : Option < PaymentPreimage > , invoice_request : Option < & InvoiceRequest > ,
982- bolt12_invoice : Option < PaidInvoice > ,
982+ bolt12_invoice : Option < PaidBolt12Invoice > ,
983983 mut route_params : RouteParameters , retry_strategy : Retry , router : & R ,
984984 first_hops : Vec < ChannelDetails > , inflight_htlcs : IH , entropy_source : & ES , node_signer : & NS ,
985985 node_id_lookup : & NL , secp_ctx : & Secp256k1 < secp256k1:: All > , best_block_height : u32 , logger : & L ,
@@ -1727,7 +1727,7 @@ impl OutboundPayments {
17271727 & self , payment_hash : PaymentHash , recipient_onion : RecipientOnionFields , payment_id : PaymentId ,
17281728 keysend_preimage : Option < PaymentPreimage > , route : & Route , retry_strategy : Option < Retry > ,
17291729 payment_params : Option < PaymentParameters > , entropy_source : & ES , best_block_height : u32 ,
1730- bolt12_invoice : Option < PaidInvoice >
1730+ bolt12_invoice : Option < PaidBolt12Invoice >
17311731 ) -> Result < Vec < [ u8 ; 32 ] > , PaymentSendFailure > where ES :: Target : EntropySource {
17321732 let mut pending_outbounds = self . pending_outbound_payments . lock ( ) . unwrap ( ) ;
17331733 match pending_outbounds. entry ( payment_id) {
@@ -1746,7 +1746,7 @@ impl OutboundPayments {
17461746 fn create_pending_payment < ES : Deref > (
17471747 payment_hash : PaymentHash , recipient_onion : RecipientOnionFields ,
17481748 keysend_preimage : Option < PaymentPreimage > , invoice_request : Option < InvoiceRequest > ,
1749- bolt12_invoice : Option < PaidInvoice > , route : & Route , retry_strategy : Option < Retry > ,
1749+ bolt12_invoice : Option < PaidBolt12Invoice > , route : & Route , retry_strategy : Option < Retry > ,
17501750 payment_params : Option < PaymentParameters > , entropy_source : & ES , best_block_height : u32
17511751 ) -> ( PendingOutboundPayment , Vec < [ u8 ; 32 ] > )
17521752 where
0 commit comments