Skip to content

Commit 5cd4a4a

Browse files
committed
Make BlindedPayInfo fields public
BlindedPayInfo fields need to be public in order to construct one for fuzz tests. Typically, they would be constructed from ChannelUpdateInfo for public channels and ChannelDetails for unannounced channels. For now, make the fields public so they can be constructed manually.
1 parent f219ab5 commit 5cd4a4a

File tree

1 file changed

+22
-6
lines changed

1 file changed

+22
-6
lines changed

lightning/src/offers/invoice.rs

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -571,12 +571,28 @@ type BlindedPayInfoIter<'a> = core::iter::Map<
571571
/// Information needed to route a payment across a [`BlindedPath`].
572572
#[derive(Clone, Debug, PartialEq)]
573573
pub struct BlindedPayInfo {
574-
fee_base_msat: u32,
575-
fee_proportional_millionths: u32,
576-
cltv_expiry_delta: u16,
577-
htlc_minimum_msat: u64,
578-
htlc_maximum_msat: u64,
579-
features: BlindedHopFeatures,
574+
/// Base fee charged (in millisatoshi) for the entire blinded path.
575+
pub fee_base_msat: u32,
576+
577+
/// Liquidity fee charged (in millionths of a satoshi) for the entire blinded path (i.e., 10,000
578+
/// is 1%).
579+
pub fee_proportional_millionths: u32,
580+
581+
/// Number of blocks subtracted from an incoming HTLC's `cltv_expiry` for the entire blinded
582+
/// path.
583+
pub cltv_expiry_delta: u16,
584+
585+
/// The minimum HTLC value (in millisatoshi) that is acceptable to all channel peers on the
586+
/// blinded path.
587+
pub htlc_minimum_msat: u64,
588+
589+
/// The maximum HTLC value (in millisatoshi) that is acceptable to all channel peers on the
590+
/// blinded path.
591+
pub htlc_maximum_msat: u64,
592+
593+
/// Features set in `encrypted_data_tlv` for the `encrypted_recipient_data` TLV record in an
594+
/// onion payload.
595+
pub features: BlindedHopFeatures,
580596
}
581597

582598
impl_writeable!(BlindedPayInfo, {

0 commit comments

Comments
 (0)