1
0

lnworker.has_anchor_channels: return False if channel is closed but not redeemed yet

this fixes the following issue: user cannot spend max until channel is redeemed.
see https://x.com/AnyoneOReally1/status/1964352775245951291
This commit is contained in:
ThomasV
2025-09-08 10:18:50 +02:00
parent fdf8f9d980
commit 2d17252b4b

View File

@@ -940,7 +940,7 @@ class LNWallet(LNWorker):
def has_anchor_channels(self) -> bool:
"""Returns True if any active channel is an anchor channel."""
return any(chan.has_anchors() and not chan.is_redeemed()
return any(chan.has_anchors() and not chan.is_closed()
for chan in self.channels.values())
@property