1
0

available_to_spend: check too_many_htlcs

partial fix for #8857
(this should at least fix the trampoline case)
This commit is contained in:
ThomasV
2025-05-14 12:25:55 +02:00
parent 128eb9cc8b
commit 9f9919e351

View File

@@ -1553,6 +1553,8 @@ class Channel(AbstractChannel):
)
max_send_msat = min(max_send_msat, self.remaining_max_inflight(receiver))
if self.too_many_htlcs(sender):
max_send_msat = 0
max_send_msat = max(max_send_msat, 0)
return max_send_msat