From 53c054ece4de01dad0060a4dfbaf2c0a1a0976ae Mon Sep 17 00:00:00 2001 From: ThomasV Date: Mon, 13 Jun 2022 10:27:30 +0200 Subject: [PATCH] swaps: set spending_txid as soon as tx is added to wallet This fixes the GUI not displaying the label of the transaction immediately --- electrum/submarine_swaps.py | 1 + 1 file changed, 1 insertion(+) diff --git a/electrum/submarine_swaps.py b/electrum/submarine_swaps.py index 78ffda660..6e04d0cff 100644 --- a/electrum/submarine_swaps.py +++ b/electrum/submarine_swaps.py @@ -231,6 +231,7 @@ class SwapManager(Logger): self.sign_tx(tx, swap) self.logger.info(f'adding claim tx {tx.txid()}') self.wallet.adb.add_transaction(tx) + swap.spending_txid = tx.txid() def get_claim_fee(self): return self.wallet.config.estimate_fee(136, allow_fallback_to_static_rates=True)