mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-14 06:29:51 +00:00
(minor) rename chan.sweep_htlc
This commit is contained in:
parent
f53a10084d
commit
123b8c1792
2 changed files with 2 additions and 2 deletions
|
@ -1311,7 +1311,7 @@ class Channel(AbstractChannel):
|
||||||
assert tx.is_complete()
|
assert tx.is_complete()
|
||||||
return tx
|
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
|
# look at the output address, check if it matches
|
||||||
return create_sweeptx_for_their_revoked_htlc(self, ctx, htlc_tx, self.sweep_address)
|
return create_sweeptx_for_their_revoked_htlc(self, ctx, htlc_tx, self.sweep_address)
|
||||||
|
|
||||||
|
|
|
@ -374,7 +374,7 @@ class LNWalletWatcher(LNWatcher):
|
||||||
if not spender_tx:
|
if not spender_tx:
|
||||||
keep_watching = True
|
keep_watching = True
|
||||||
continue
|
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:
|
if e_htlc_tx:
|
||||||
spender2 = spenders.get(spender_txid+':0')
|
spender2 = spenders.get(spender_txid+':0')
|
||||||
if spender2:
|
if spender2:
|
||||||
|
|
Loading…
Add table
Reference in a new issue