URI: 
       tlnworker: fix 'channel details' with stuck htlc - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 3b44cf8c67331bcfd96bbd7f8469ff78b3a97dd9
   DIR parent f8dc9b344a134b0181487362c5bbbb6ff061bf08
  HTML Author: Janus <ysangkok@gmail.com>
       Date:   Fri, 25 Jan 2019 14:08:02 +0100
       
       lnworker: fix 'channel details' with stuck htlc
       
       Diffstat:
         M electrum/lnworker.py                |       6 ++++--
       
       1 file changed, 4 insertions(+), 2 deletions(-)
       ---
   DIR diff --git a/electrum/lnworker.py b/electrum/lnworker.py
       t@@ -193,8 +193,10 @@ class LNWorker(PrintError):
                        addr.amount = Decimal(amount_sat) / COIN
                    htlc = self.find_htlc_for_addr(addr, None if chan_id is None else [chan_id])
                    if not htlc:
       -                self.print_error('Warning, in flight HTLC not found in any channel')
       -            inflight.append((addr, htlc, direction))
       +                self.print_error('Warning, in-flight HTLC not found in any channel')
       +            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}
        
            def find_htlc_for_addr(self, addr, whitelist=None):