mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-27 15:31:31 +00:00
lnworker: fix 'channel details' with stuck htlc
This commit is contained in:
parent
f8dc9b344a
commit
3b44cf8c67
1 changed files with 4 additions and 2 deletions
|
@ -193,8 +193,10 @@ class LNWorker(PrintError):
|
||||||
addr.amount = Decimal(amount_sat) / COIN
|
addr.amount = Decimal(amount_sat) / COIN
|
||||||
htlc = self.find_htlc_for_addr(addr, None if chan_id is None else [chan_id])
|
htlc = self.find_htlc_for_addr(addr, None if chan_id is None else [chan_id])
|
||||||
if not htlc:
|
if not htlc:
|
||||||
self.print_error('Warning, in flight HTLC not found in any channel')
|
self.print_error('Warning, in-flight HTLC not found in any channel')
|
||||||
inflight.append((addr, htlc, direction))
|
inflight.append((addr, htlc, SENT))
|
||||||
|
# not adding received htlcs to inflight because they should have been settled
|
||||||
|
# immediatly and therefore let's not spend time trying to show it in the GUI
|
||||||
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):
|
||||||
|
|
Loading…
Add table
Reference in a new issue