tlnworker: handle null whitelist correctly - electrum - Electrum Bitcoin wallet
HTML git clone https://git.parazyd.org/electrum
DIR Log
DIR Files
DIR Refs
DIR Submodules
---
DIR commit 129099797a29a3d02efe2df8a76721b6cadf9a63
DIR parent 3b44cf8c67331bcfd96bbd7f8469ff78b3a97dd9
HTML Author: Janus <ysangkok@gmail.com>
Date: Fri, 25 Jan 2019 15:06:49 +0100
lnworker: handle null whitelist correctly
Diffstat:
M electrum/lnworker.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/electrum/lnworker.py b/electrum/lnworker.py
t@@ -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: