electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 3dacc525e63570b835246ee06e1c97a08c81deee
parent 7be4cdaf18dd3bc0aab41e2c0d09b4d29bf992d6
Author: ThomasV <thomasv@electrum.org>
Date:   Wed, 29 May 2019 22:08:53 +0200

on_network_update: check if channel is closed

Diffstat:
Melectrum/lnworker.py | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/electrum/lnworker.py b/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