From da16b111599e202e901bb500ada2555817052204 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Wed, 9 Mar 2022 15:46:42 +0100 Subject: [PATCH] minor: simplification --- electrum/lnpeer.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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