1
0

lnutil: lower minimum max-htlc-in-flight for new channels from 100_000_000 to 90_000_000

so we don't error out when GUI hinted minimum 2mBTC channel size is used for peers that
constrain max-htlc-in-flight to 45% of channel capacity. (fixes #8712)
This commit is contained in:
Sander van Grieken
2025-05-21 11:35:08 +02:00
parent 958df667fb
commit 1063f0daa7

View File

@@ -154,7 +154,7 @@ class ChannelConfig(StoredObject):
raise Exception(f"{conf_name}. max_accepted_htlcs too high: {self.max_accepted_htlcs}")
if self.to_self_delay > MAXIMUM_REMOTE_TO_SELF_DELAY_ACCEPTED:
raise Exception(f"{conf_name}. to_self_delay too high: {self.to_self_delay} > {MAXIMUM_REMOTE_TO_SELF_DELAY_ACCEPTED}")
if self.max_htlc_value_in_flight_msat < min(1000 * funding_sat, 100_000_000):
if self.max_htlc_value_in_flight_msat < min(1000 * funding_sat, 90_000_000):
raise Exception(f"{conf_name}. max_htlc_value_in_flight_msat is too small: {self.max_htlc_value_in_flight_msat}")
@classmethod