We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
max_inbound_htlc_value_in_flight
1 parent 12d18e9 commit 17a41e8Copy full SHA for 17a41e8
1 file changed
src/lib.rs
@@ -1076,6 +1076,14 @@ impl Node {
1076
let mut user_config = default_user_config(&self.config);
1077
user_config.channel_handshake_config.announced_channel = announce_channel;
1078
user_config.channel_config = (*(channel_config.unwrap_or_default())).clone().into();
1079
+ // We set the max inflight to 100% for private channels.
1080
+ // FIXME: LDK will default to this behavior soon, too, at which point we should drop this
1081
+ // manual override.
1082
+ if !announce_channel {
1083
+ user_config
1084
+ .channel_handshake_config
1085
+ .max_inbound_htlc_value_in_flight_percent_of_channel = 100;
1086
+ }
1087
1088
let push_msat = push_to_counterparty_msat.unwrap_or(0);
1089
let user_channel_id: u128 = rand::thread_rng().gen::<u128>();
0 commit comments