tuse tx.txid() instead of tx.hash() - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 4435a6c9c7227846e5460783520607e0cab9b7fb DIR parent a94789b8efc4f6a41345ab2b4d1b4b3e4d18ce63 HTML Author: SomberNight <somber.night@protonmail.com> Date: Fri, 12 Jan 2018 14:18:50 +0100 use tx.txid() instead of tx.hash() Diffstat: M gui/kivy/uix/screens.py | 2 +- M gui/qt/transaction_dialog.py | 2 +- M gui/stdio.py | 2 +- M gui/text.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) --- DIR diff --git a/gui/kivy/uix/screens.py b/gui/kivy/uix/screens.py t@@ -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): DIR diff --git a/gui/qt/transaction_dialog.py b/gui/qt/transaction_dialog.py t@@ -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: DIR diff --git a/gui/stdio.py b/gui/stdio.py t@@ -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) DIR diff --git a/gui/text.py b/gui/text.py t@@ -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)