Browse Source

lnwatcher: try_redeem must return if tx is None

master
ThomasV 5 years ago
parent
commit
aba0bad30c
  1. 1
      electrum/lnwatcher.py

1
electrum/lnwatcher.py

@ -432,6 +432,7 @@ class LNWalletWatcher(LNWatcher):
tx = sweep_info.gen_tx() tx = sweep_info.gen_tx()
if tx is None: if tx is None:
self.logger.info(f'{name} could not claim output: {prevout}, dust') self.logger.info(f'{name} could not claim output: {prevout}, dust')
return
self.lnworker.wallet.set_label(tx.txid(), name) self.lnworker.wallet.set_label(tx.txid(), name)
if broadcast: if broadcast:
await self.network.try_broadcasting(tx, name) await self.network.try_broadcasting(tx, name)

Loading…
Cancel
Save