URI: 
       t(minor) rename chan.sweep_htlc - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 123b8c17923e9cc06d9444272bead3cb26c206dd
   DIR parent f53a10084da027c69e7108702cb3d89613aa5965
  HTML Author: ThomasV <thomasv@electrum.org>
       Date:   Sat,  2 May 2020 11:42:47 +0200
       
       (minor) rename chan.sweep_htlc
       
       Diffstat:
         M electrum/lnchannel.py               |       2 +-
         M electrum/lnwatcher.py               |       2 +-
       
       2 files changed, 2 insertions(+), 2 deletions(-)
       ---
   DIR diff --git a/electrum/lnchannel.py b/electrum/lnchannel.py
       t@@ -1311,7 +1311,7 @@ class Channel(AbstractChannel):
                assert tx.is_complete()
                return tx
        
       -    def sweep_htlc(self, ctx: Transaction, htlc_tx: Transaction) -> Optional[SweepInfo]:
       +    def maybe_sweep_revoked_htlc(self, ctx: Transaction, htlc_tx: Transaction) -> Optional[SweepInfo]:
                # look at the output address, check if it matches
                return create_sweeptx_for_their_revoked_htlc(self, ctx, htlc_tx, self.sweep_address)
        
   DIR diff --git a/electrum/lnwatcher.py b/electrum/lnwatcher.py
       t@@ -374,7 +374,7 @@ class LNWalletWatcher(LNWatcher):
                        if not spender_tx:
                            keep_watching = True
                            continue
       -                e_htlc_tx = chan.sweep_htlc(closing_tx, spender_tx)
       +                e_htlc_tx = chan.maybe_sweep_revoked_htlc(closing_tx, spender_tx)
                        if e_htlc_tx:
                            spender2 = spenders.get(spender_txid+':0')
                            if spender2: