1
0

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

This fixes the GUI not displaying the label of the transaction immediately
This commit is contained in:
ThomasV
2022-06-13 10:27:30 +02:00
parent 599ad1c017
commit 53c054ece4

View File

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