mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-30 08:51:32 +00:00
lnworker: handle null whitelist correctly
This commit is contained in:
parent
3b44cf8c67
commit
129099797a
1 changed files with 1 additions and 1 deletions
|
@ -200,7 +200,7 @@ class LNWorker(PrintError):
|
||||||
return {'settled': settled, 'unsettled': unsettled, 'inflight': inflight}
|
return {'settled': settled, 'unsettled': unsettled, 'inflight': inflight}
|
||||||
|
|
||||||
def find_htlc_for_addr(self, addr, whitelist=None):
|
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 chan in channels:
|
||||||
for htlc in chan.hm.log[LOCAL]['adds'].values():
|
for htlc in chan.hm.log[LOCAL]['adds'].values():
|
||||||
if htlc.payment_hash == addr.paymenthash:
|
if htlc.payment_hash == addr.paymenthash:
|
||||||
|
|
Loading…
Add table
Reference in a new issue