tlnworker: catch exceptions raised by add_future_tx - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 24cc3599c700aa2e6082247141a000ac216d4821 DIR parent 740ef0988362648ad78f1845a2ddab9c7909e2de HTML Author: ThomasV <thomasv@electrum.org> Date: Tue, 4 Jun 2019 10:51:29 +0200 lnworker: catch exceptions raised by add_future_tx Diffstat: M electrum/lnworker.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) --- DIR diff --git a/electrum/lnworker.py b/electrum/lnworker.py t@@ -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():