|
29 | 29 | //! use lightning::util::ser::Writeable; |
30 | 30 | //! |
31 | 31 | //! # use lightning::ln::types::PaymentHash; |
32 | | -//! # use lightning::offers::invoice::{BlindedPayInfo, ExplicitSigningPubkey, InvoiceBuilder}; |
33 | | -//! # use lightning::blinded_path::payment::BlindedPaymentPath; |
| 32 | +//! # use lightning::offers::invoice::{ExplicitSigningPubkey, InvoiceBuilder}; |
| 33 | +//! # use lightning::blinded_path::payment::{BlindedPayInfo, BlindedPaymentPath}; |
34 | 34 | //! # |
35 | 35 | //! # fn create_payment_paths() -> Vec<BlindedPaymentPath> { unimplemented!() } |
36 | 36 | //! # fn create_payment_hash() -> PaymentHash { unimplemented!() } |
@@ -112,10 +112,10 @@ use core::hash::{Hash, Hasher}; |
112 | 112 | use crate::io; |
113 | 113 | use crate::blinded_path::BlindedPath; |
114 | 114 | use crate::blinded_path::message::BlindedMessagePath; |
115 | | -use crate::blinded_path::payment::BlindedPaymentPath; |
| 115 | +use crate::blinded_path::payment::{BlindedPayInfo, BlindedPaymentPath}; |
116 | 116 | use crate::ln::types::PaymentHash; |
117 | 117 | use crate::ln::channelmanager::PaymentId; |
118 | | -use crate::ln::features::{BlindedHopFeatures, Bolt12InvoiceFeatures, InvoiceRequestFeatures, OfferFeatures}; |
| 118 | +use crate::ln::features::{Bolt12InvoiceFeatures, InvoiceRequestFeatures, OfferFeatures}; |
119 | 119 | use crate::ln::inbound_payment::{ExpandedKey, IV_LEN}; |
120 | 120 | use crate::ln::msgs::DecodeError; |
121 | 121 | use crate::offers::invoice_macros::{invoice_accessors_common, invoice_builder_methods_common}; |
@@ -1216,44 +1216,6 @@ pub(super) type BlindedPayInfoIter<'a> = core::iter::Map< |
1216 | 1216 | for<'r> fn(&'r BlindedPaymentPath) -> &'r BlindedPayInfo, |
1217 | 1217 | >; |
1218 | 1218 |
|
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 | | - |
1257 | 1219 | /// Wire representation for an on-chain fallback address. |
1258 | 1220 | #[derive(Clone, Debug, PartialEq)] |
1259 | 1221 | pub(super) struct FallbackAddress { |
|
0 commit comments