Browse Source

minor: simplification

patch-4
ThomasV 3 years ago
parent
commit
da16b11159
  1. 6
      electrum/lnpeer.py

6
electrum/lnpeer.py

@ -298,11 +298,7 @@ class Peer(Logger):
# MUST fail the channel(s) referred to by the error message: # MUST fail the channel(s) referred to by the error message:
# we may violate this with force_close_channel # we may violate this with force_close_channel
if force_close_channel: if force_close_channel:
# channel_id of zero means that the error refers to all channels for cid self._get_channel_ids(channel_id):
if channel_id == bytes(32):
for channel_id in self.channels:
self.schedule_force_closing(channel_id)
else:
self.schedule_force_closing(channel_id) self.schedule_force_closing(channel_id)
raise GracefulDisconnect raise GracefulDisconnect

Loading…
Cancel
Save