Browse Source

on_network_update: check if channel is closed

dependabot/pip/contrib/deterministic-build/ecdsa-0.13.3
ThomasV 6 years ago
parent
commit
3dacc525e6
  1. 2
      electrum/lnworker.py

2
electrum/lnworker.py

@ -577,6 +577,8 @@ class LNWallet(LNWorker):
if args[0] != lnwatcher:
return
for chan in channels:
if chan.is_closed():
continue
if chan.get_state() in ["OPEN", "DISCONNECTED"] and self.is_dangerous(chan):
await self.force_close_channel(chan.channel_id)
continue

Loading…
Cancel
Save