Browse Source

lnwatcher: try_redeem must return if tx is None

patch-4
ThomasV 4 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()
if tx is None:
self.logger.info(f'{name} could not claim output: {prevout}, dust')
return
self.lnworker.wallet.set_label(tx.txid(), name)
if broadcast:
await self.network.try_broadcasting(tx, name)

Loading…
Cancel
Save