commit 4435a6c9c7227846e5460783520607e0cab9b7fb
parent a94789b8efc4f6a41345ab2b4d1b4b3e4d18ce63
Author: SomberNight <somber.night@protonmail.com>
Date: Fri, 12 Jan 2018 14:18:50 +0100
use tx.txid() instead of tx.hash()
Diffstat:
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git 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
@@ -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
@@ -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
@@ -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)