From 2d17252b4b7837284d15374edd4f9173a8137474 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Mon, 8 Sep 2025 10:18:50 +0200 Subject: [PATCH] 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 --- electrum/lnworker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electrum/lnworker.py b/electrum/lnworker.py index 0261e3fe0..8139e6588 100644 --- a/electrum/lnworker.py +++ b/electrum/lnworker.py @@ -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