@@ -2964,19 +2964,6 @@ const MAX_PEER_STORAGE_SIZE: usize = 1024;
2964
2964
/// many peers we reject new (inbound) connections.
2965
2965
const MAX_NO_CHANNEL_PEERS: usize = 250;
2966
2966
2967
- /// The maximum expiration from the current time where an [`Offer`] or [`Refund`] is considered
2968
- /// short-lived, while anything with a greater expiration is considered long-lived.
2969
- ///
2970
- /// Using [`ChannelManager::create_offer_builder`] or [`ChannelManager::create_refund_builder`],
2971
- /// will include a [`BlindedMessagePath`] created using [`MessageRouter::create_blinded_paths`].
2972
- ///
2973
- /// Using compact [`BlindedMessagePath`]s may provide better privacy as the [`MessageRouter`] could select
2974
- /// more hops. However, since they use short channel ids instead of pubkeys, they are more likely to
2975
- /// become invalid over time as channels are closed. Thus, they are only suitable for short-term use.
2976
- ///
2977
- /// [`BlindedMessagePath`]: crate::blinded_path::message::BlindedMessagePath
2978
- pub const MAX_SHORT_LIVED_RELATIVE_EXPIRY: Duration = Duration::from_secs(60 * 60 * 24);
2979
-
2980
2967
/// Used by [`ChannelManager::list_recent_payments`] to express the status of recent payments.
2981
2968
/// These include payments that have yet to find a successful path, or have unresolved HTLCs.
2982
2969
#[derive(Debug, PartialEq)]
@@ -11567,8 +11554,9 @@ macro_rules! create_offer_builder { ($self: ident, $builder: ty) => {
11567
11554
///
11568
11555
/// # Privacy
11569
11556
///
11570
- /// Uses the [`MessageRouter`] provided to the [`ChannelManager`] at construction to build a
11571
- /// [`BlindedMessagePath`] for the offer. See those docs for privacy implications.
11557
+ /// Uses [`MessageRouter`] provided at construction to construct a [`BlindedMessagePath`] for
11558
+ /// the offer. See the documentation of the selected [`MessageRouter`] for details on how it
11559
+ /// selects blinded paths including privacy implications and reliability tradeoffs.
11572
11560
///
11573
11561
/// Also, uses a derived signing pubkey in the offer for recipient privacy.
11574
11562
///
@@ -11597,7 +11585,7 @@ macro_rules! create_offer_builder { ($self: ident, $builder: ty) => {
11597
11585
/// This gives users full control over how the [`BlindedMessagePath`] is constructed,
11598
11586
/// including the option to omit it entirely.
11599
11587
///
11600
- /// See [`Self::create_offer_builder`] for details on offer construction, privacy, and limitations .
11588
+ /// See [`Self::create_offer_builder`] for more details on usage .
11601
11589
///
11602
11590
/// [`BlindedMessagePath`]: crate::blinded_path::message::BlindedMessagePath
11603
11591
/// [`Offer`]: crate::offers::offer::Offer
@@ -11640,9 +11628,9 @@ macro_rules! create_refund_builder { ($self: ident, $builder: ty) => {
11640
11628
///
11641
11629
/// # Privacy
11642
11630
///
11643
- /// Uses [`MessageRouter`] to construct a [`BlindedMessagePath`] for the refund based on the given
11644
- /// `absolute_expiry` according to [`MAX_SHORT_LIVED_RELATIVE_EXPIRY`]. See those docs for
11645
- /// privacy implications.
11631
+ /// Uses [`MessageRouter`] provided at construction to construct a [`BlindedMessagePath`] for
11632
+ /// the refund. See the documentation of the selected [`MessageRouter`] for details on how it
11633
+ /// selects blinded paths including privacy implications and reliability tradeoffs .
11646
11634
///
11647
11635
/// Also, uses a derived payer id in the refund for payer privacy.
11648
11636
///
@@ -11689,12 +11677,7 @@ macro_rules! create_refund_builder { ($self: ident, $builder: ty) => {
11689
11677
/// refund, including the option to omit it entirely. This is useful for testing or when
11690
11678
/// alternative privacy strategies are needed.
11691
11679
///
11692
- /// See [`Self::create_refund_builder`] for:
11693
- /// - refund recognition by [`ChannelManager`] via [`Bolt12Invoice`] handling,
11694
- /// - `payment_id` rules and expiration behavior,
11695
- /// - invoice revocation and refund failure handling,
11696
- /// - defaulting behavior for `max_total_routing_fee_msat`,
11697
- /// - and detailed payment and privacy semantics.
11680
+ /// See [`Self::create_refund_builder`] for more details on usage.
11698
11681
///
11699
11682
/// # Errors
11700
11683
///
0 commit comments