@@ -112,10 +112,10 @@ use core::hash::{Hash, Hasher};
112112use crate :: io;
113113use crate :: blinded_path:: BlindedPath ;
114114use crate :: blinded_path:: message:: BlindedMessagePath ;
115- use crate :: blinded_path:: payment:: BlindedPaymentPath ;
115+ use crate :: blinded_path:: payment:: { BlindedPayInfo , BlindedPaymentPath } ;
116116use crate :: ln:: types:: PaymentHash ;
117117use crate :: ln:: channelmanager:: PaymentId ;
118- use crate :: ln:: features:: { BlindedHopFeatures , Bolt12InvoiceFeatures , InvoiceRequestFeatures , OfferFeatures } ;
118+ use crate :: ln:: features:: { Bolt12InvoiceFeatures , InvoiceRequestFeatures , OfferFeatures } ;
119119use crate :: ln:: inbound_payment:: { ExpandedKey , IV_LEN } ;
120120use crate :: ln:: msgs:: DecodeError ;
121121use crate :: offers:: invoice_macros:: { invoice_accessors_common, invoice_builder_methods_common} ;
@@ -1216,44 +1216,6 @@ pub(super) type BlindedPayInfoIter<'a> = core::iter::Map<
12161216 for <' r > fn ( & ' r BlindedPaymentPath ) -> & ' r BlindedPayInfo ,
12171217> ;
12181218
1219- /// Information needed to route a payment across a [`BlindedPaymentPath`].
1220- #[ derive( Clone , Debug , Hash , Eq , PartialEq ) ]
1221- pub struct BlindedPayInfo {
1222- /// Base fee charged (in millisatoshi) for the entire blinded path.
1223- pub fee_base_msat : u32 ,
1224-
1225- /// Liquidity fee charged (in millionths of the amount transferred) for the entire blinded path
1226- /// (i.e., 10,000 is 1%).
1227- pub fee_proportional_millionths : u32 ,
1228-
1229- /// Number of blocks subtracted from an incoming HTLC's `cltv_expiry` for the entire blinded
1230- /// path.
1231- pub cltv_expiry_delta : u16 ,
1232-
1233- /// The minimum HTLC value (in millisatoshi) that is acceptable to all channel peers on the
1234- /// blinded path from the introduction node to the recipient, accounting for any fees, i.e., as
1235- /// seen by the recipient.
1236- pub htlc_minimum_msat : u64 ,
1237-
1238- /// The maximum HTLC value (in millisatoshi) that is acceptable to all channel peers on the
1239- /// blinded path from the introduction node to the recipient, accounting for any fees, i.e., as
1240- /// seen by the recipient.
1241- pub htlc_maximum_msat : u64 ,
1242-
1243- /// Features set in `encrypted_data_tlv` for the `encrypted_recipient_data` TLV record in an
1244- /// onion payload.
1245- pub features : BlindedHopFeatures ,
1246- }
1247-
1248- impl_writeable ! ( BlindedPayInfo , {
1249- fee_base_msat,
1250- fee_proportional_millionths,
1251- cltv_expiry_delta,
1252- htlc_minimum_msat,
1253- htlc_maximum_msat,
1254- features
1255- } ) ;
1256-
12571219/// Wire representation for an on-chain fallback address.
12581220#[ derive( Clone , Debug , PartialEq ) ]
12591221pub ( super ) struct FallbackAddress {
0 commit comments