Browse Source

lnworker: catch exceptions raised by add_future_tx

dependabot/pip/contrib/deterministic-build/ecdsa-0.13.3
ThomasV 6 years ago
parent
commit
24cc3599c7
  1. 6
      electrum/lnworker.py

6
electrum/lnworker.py

@ -555,7 +555,11 @@ class LNWallet(LNWorker):
self.logger.info(f'{name} could not publish encumbered tx: {str(tx)}, prevout: {prevout}')
else:
# it's OK to add local transaction, the fee will be recomputed
self.wallet.add_future_tx(tx, remaining)
try:
self.wallet.add_future_tx(tx, remaining)
self.logger.info(f'adding future tx: {name}. prevout: {prevout}')
except Exception as e:
self.logger.info(f'could not add future tx: {name}. prevout: {prevout} {str(e)}')
def is_dangerous(self, chan):
for x in chan.get_unfulfilled_htlcs():

Loading…
Cancel
Save