From 129099797a29a3d02efe2df8a76721b6cadf9a63 Mon Sep 17 00:00:00 2001 From: Janus Date: Fri, 25 Jan 2019 15:06:49 +0100 Subject: [PATCH] lnworker: handle null whitelist correctly --- electrum/lnworker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electrum/lnworker.py b/electrum/lnworker.py index f13868156..3a8a0ee8a 100644 --- a/electrum/lnworker.py +++ b/electrum/lnworker.py @@ -200,7 +200,7 @@ class LNWorker(PrintError): return {'settled': settled, 'unsettled': unsettled, 'inflight': inflight} def find_htlc_for_addr(self, addr, whitelist=None): - channels = [y for x,y in self.channels.items() if x in whitelist or whitelist is None] + channels = [y for x,y in self.channels.items() if whitelist is None or x in whitelist] for chan in channels: for htlc in chan.hm.log[LOCAL]['adds'].values(): if htlc.payment_hash == addr.paymenthash: