Browse Source

lnwatcher: set future_tx regardless of tx_was_added, because it is not persisted

patch-4
ThomasV 2 years ago
parent
commit
fceceaec97
  1. 3
      electrum/lnwatcher.py

3
electrum/lnwatcher.py

@ -534,10 +534,11 @@ class LNWalletWatcher(LNWatcher):
self.logger.info(f'could not add future tx: {name}. prevout: {prevout} {str(e)}')
tx_was_added = False
if tx_was_added:
self.adb.set_future_tx(new_tx.txid(), wanted_height)
self.logger.info(f'added redeem tx: {name}. prevout: {prevout}')
else:
tx_was_added = False
# set future tx regardless of tx_was_added, because it is not persisted
self.adb.set_future_tx(new_tx.txid(), wanted_height)
if tx_was_added:
self.lnworker.wallet.set_label(new_tx.txid(), name)
if old_tx and old_tx.txid() != new_tx.txid():

Loading…
Cancel
Save