From cd025c5553a3c453d84e9b231a64c64c478284c5 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Wed, 17 Mar 2021 15:55:53 +0100 Subject: [PATCH] inspect_tx_candidate: tx output must be of address type --- electrum/lnwatcher.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/electrum/lnwatcher.py b/electrum/lnwatcher.py index 5bd788c51..6eaa55899 100644 --- a/electrum/lnwatcher.py +++ b/electrum/lnwatcher.py @@ -234,6 +234,8 @@ class LNWatcher(AddressSynchronizer): self.channel_status[outpoint] = 'closed (deep)' tx = self.db.get_transaction(txid) for i, o in enumerate(tx.outputs()): + if o.address is None: + continue if not self.is_mine(o.address): self.add_address(o.address) elif n < 2: