mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-31 01:11:35 +00:00
lnwatcher: fix keep_watching if the wallet was not force-closed
This commit is contained in:
parent
d8a992e400
commit
3329d9dd0e
1 changed files with 1 additions and 1 deletions
|
@ -349,7 +349,7 @@ class LNWalletWatcher(LNWatcher):
|
||||||
return
|
return
|
||||||
# detect who closed and set sweep_info
|
# detect who closed and set sweep_info
|
||||||
sweep_info_dict = chan.sweep_ctx(closing_tx)
|
sweep_info_dict = chan.sweep_ctx(closing_tx)
|
||||||
keep_watching = False
|
keep_watching = False if sweep_info_dict else not self.is_deeply_mined(closing_tx.txid())
|
||||||
self.logger.info(f'sweep_info_dict length: {len(sweep_info_dict)}')
|
self.logger.info(f'sweep_info_dict length: {len(sweep_info_dict)}')
|
||||||
# create and broadcast transaction
|
# create and broadcast transaction
|
||||||
for prevout, sweep_info in sweep_info_dict.items():
|
for prevout, sweep_info in sweep_info_dict.items():
|
||||||
|
|
Loading…
Add table
Reference in a new issue