File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -1076,6 +1076,14 @@ impl Node {
1076
1076
let mut user_config = default_user_config ( & self . config ) ;
1077
1077
user_config. channel_handshake_config . announced_channel = announce_channel;
1078
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
+ }
1079
1087
1080
1088
let push_msat = push_to_counterparty_msat. unwrap_or ( 0 ) ;
1081
1089
let user_channel_id: u128 = rand:: thread_rng ( ) . gen :: < u128 > ( ) ;
You can’t perform that action at this time.
0 commit comments