Constant MAX_SHORT_LIVED_RELATIVE_EXPIRY
pub const MAX_SHORT_LIVED_RELATIVE_EXPIRY: Duration;
Expand description
The maximum expiration from the current time where an Offer
or Refund
is considered
short-lived, while anything with a greater expiration is considered long-lived.
Using ChannelManager::create_offer_builder
or ChannelManager::create_refund_builder
,
will included a BlindedMessagePath
created using:
MessageRouter::create_compact_blinded_paths
when short-lived, andMessageRouter::create_blinded_paths
when long-lived.
Using compact BlindedMessagePath
s may provide better privacy as the MessageRouter
could select
more hops. However, since they use short channel ids instead of pubkeys, they are more likely to
become invalid over time as channels are closed. Thus, they are only suitable for short-term use.