diff --git a/gui/kivy/uix/screens.py b/gui/kivy/uix/screens.py index b8ffe5dd..d7fff76a 100644 --- a/gui/kivy/uix/screens.py +++ b/gui/kivy/uix/screens.py @@ -301,7 +301,7 @@ class SendScreen(CScreen): def on_success(tx): if tx.is_complete(): self.app.broadcast(tx, self.payment_request) - self.app.wallet.set_label(tx.hash(), message) + self.app.wallet.set_label(tx.txid(), message) else: self.app.tx_dialog(tx) def on_failure(error): diff --git a/gui/qt/transaction_dialog.py b/gui/qt/transaction_dialog.py index 71dbf8eb..c93fee15 100644 --- a/gui/qt/transaction_dialog.py +++ b/gui/qt/transaction_dialog.py @@ -163,7 +163,7 @@ class TxDialog(QDialog, MessageBoxMixin): self.main_window.sign_tx(self.tx, sign_done) def save(self): - name = 'signed_%s.txn' % (self.tx.hash()[0:8]) if self.tx.is_complete() else 'unsigned.txn' + name = 'signed_%s.txn' % (self.tx.txid()[0:8]) if self.tx.is_complete() else 'unsigned.txn' fileName = self.main_window.getSaveFileName(_("Select where to save your signed transaction"), name, "*.txn") if fileName: with open(fileName, "w+") as f: diff --git a/gui/stdio.py b/gui/stdio.py index a4a67ed7..787dce79 100644 --- a/gui/stdio.py +++ b/gui/stdio.py @@ -195,7 +195,7 @@ class ElectrumGui: return if self.str_description: - self.wallet.labels[tx.hash()] = self.str_description + self.wallet.labels[tx.txid()] = self.str_description print(_("Please wait...")) status, msg = self.network.broadcast(tx) diff --git a/gui/text.py b/gui/text.py index f9f2f524..9ecf91af 100644 --- a/gui/text.py +++ b/gui/text.py @@ -346,7 +346,7 @@ class ElectrumGui: return if self.str_description: - self.wallet.labels[tx.hash()] = self.str_description + self.wallet.labels[tx.txid()] = self.str_description self.show_message(_("Please wait..."), getchar=False) status, msg = self.network.broadcast(tx)