Browse Source

lnworker: catch exceptions raised by add_future_tx

master
ThomasV 7 years ago
parent
commit
24cc3599c7
  1. 4
      electrum/lnworker.py

4
electrum/lnworker.py

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

Loading…
Cancel
Save