diff --git a/electrum/lnpeer.py b/electrum/lnpeer.py index 6a1548549..60d637b22 100644 --- a/electrum/lnpeer.py +++ b/electrum/lnpeer.py @@ -298,11 +298,7 @@ class Peer(Logger): # MUST fail the channel(s) referred to by the error message: # we may violate this with force_close_channel if force_close_channel: - # channel_id of zero means that the error refers to all channels - if channel_id == bytes(32): - for channel_id in self.channels: - self.schedule_force_closing(channel_id) - else: + for cid self._get_channel_ids(channel_id): self.schedule_force_closing(channel_id) raise GracefulDisconnect