@@ -48,23 +48,25 @@ pub struct ChannelHandshakeConfig {
48
48
/// Default value: 1. If the value is less than 1, it is ignored and set to 1, as is required
49
49
/// by the protocol.
50
50
pub our_htlc_minimum_msat : u64 ,
51
- /// Sets how many the percent of the channel value we will cap the total value of outstanding
52
- /// inbound HTLCs to.
51
+ /// Sets the percentage of the channel value we will cap the total value of outstanding inbound
52
+ /// HTLCs to.
53
53
///
54
54
/// This can be set to a value between 1-100, where the value corresponds to the percent of the
55
55
/// channel value in whole percentages.
56
56
///
57
- /// Note that if configured to another value than the default value 10, any new channels
58
- /// created with the non default value won't be backwards compatible with LDK versions prior
59
- /// to 0.0.100.
57
+ /// Note that:
58
+ /// * If configured to another value than the default value 10, any new channels
59
+ /// created with the non default value will cause versions of LDK prior to 0.0.100 to refuse to
60
+ /// read the ChannelManager.
60
61
///
61
- /// Note that this caps the total value for inbound HTLCs in-flight only, and there's currently
62
- /// no availability to configure the cap for the total value of outbound HTLCs in-flight.
63
- /// This effects the in-flight HTLC balance, which [`ChannelConfig::cltv_expiry_delta`] is
64
- /// applied to.
62
+ /// * This caps the total value for inbound HTLCs in-flight only, and there's currently
63
+ /// no way to configure the cap for the total value of outbound HTLCs in-flight.
65
64
///
66
- /// This does not cap the total value of the non-HTLC-encumbered balance which
67
- /// [`ChannelHandshakeConfig::our_to_self_delay`] is applied to.
65
+ /// * The online requirements for ensuring the safety of HTLC-encumbered funds are
66
+ /// different from the non-HTLC-encumbered funds. This makes this an important knob to restrict
67
+ /// exposure to loss due to being offline for too long.
68
+ /// See [`ChannelHandshakeConfig::our_to_self_delay`] and [`ChannelConfig::cltv_expiry_delta`]
69
+ /// for more information.
68
70
///
69
71
/// Default value: 10.
70
72
/// Minimum value: 1, any values less than 1 will be treated as 1 instead.
0 commit comments