electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 24cc3599c700aa2e6082247141a000ac216d4821
parent 740ef0988362648ad78f1845a2ddab9c7909e2de
Author: ThomasV <thomasv@electrum.org>
Date:   Tue,  4 Jun 2019 10:51:29 +0200

lnworker: catch exceptions raised by add_future_tx

Diffstat:
Melectrum/lnworker.py | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/electrum/lnworker.py b/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():