Skip to content

Commit 54ca4fa

Browse files
committed
Add comment to config knob
1 parent 3412ddb commit 54ca4fa

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lightning/src/util/config.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,16 @@ pub struct ChannelHandshakeConfig {
171171
/// [`SIGHASH_SINGLE + update_fee Considered Harmful`]: https://lists.linuxfoundation.org/pipermail/lightning-dev/2020-September/002796.html
172172
pub negotiate_anchors_zero_fee_htlc_tx: bool,
173173

174+
/// Set to limit the number of HTLCs a remote can push.
175+
///
176+
/// If a counterparty exceeds the threshold, throw an error and close the channel.
177+
///
178+
/// Increasing the value can help improve liquidity and stability in
179+
/// routing at the cost of higher memory & compute consumption.
180+
///
181+
/// Note: Versions of LDK earlier than v0.0.115 will fail to read channels with a configuration
182+
/// other than the default value.
183+
///
174184
/// Default value: 50
175185
pub our_max_accepted_htlcs: u16,
176186
}

0 commit comments

Comments
 (0)