From 535f7cdcb755cd22c7564e687f9c18d58eb3bb60 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Sat, 7 Oct 2023 17:03:13 +0200 Subject: [PATCH] follow-up previous commit --- electrum/submarine_swaps.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electrum/submarine_swaps.py b/electrum/submarine_swaps.py index 0d865a23c..2ca934c75 100644 --- a/electrum/submarine_swaps.py +++ b/electrum/submarine_swaps.py @@ -309,7 +309,7 @@ class SwapManager(Logger): self.lnwatcher.remove_callback(swap.lockup_address) swap.is_redeemed = True elif spent_height == TX_HEIGHT_LOCAL: - if swap.is_reverse and (funding_height.conf > 0 or self.wallet.config.LIGHTNING_ALLOW_INSTANT_SWAPS): + if funding_height.conf > 0 or (swap.is_reverse and self.wallet.config.LIGHTNING_ALLOW_INSTANT_SWAPS): tx = self.lnwatcher.adb.get_transaction(txin.spent_txid) try: await self.network.broadcast_transaction(tx)