1
0

on_network_update: check if channel is closed

This commit is contained in:
ThomasV
2019-05-29 22:08:53 +02:00
parent 7be4cdaf18
commit 3dacc525e6

View File

@@ -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