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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user