electrum

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

commit 129099797a29a3d02efe2df8a76721b6cadf9a63
parent 3b44cf8c67331bcfd96bbd7f8469ff78b3a97dd9
Author: Janus <ysangkok@gmail.com>
Date:   Fri, 25 Jan 2019 15:06:49 +0100

lnworker: handle null whitelist correctly

Diffstat:
Melectrum/lnworker.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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: