Browse Source

swaps: set spending_txid as soon as tx is added to wallet

This fixes the GUI not displaying the label of the transaction immediately
patch-4
ThomasV 3 years ago
parent
commit
53c054ece4
  1. 1
      electrum/submarine_swaps.py

1
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)

Loading…
Cancel
Save