use tx.txid() instead of tx.hash()

This commit is contained in:
SomberNight 2018-01-12 14:18:50 +01:00
parent a94789b8ef
commit 4435a6c9c7
4 changed files with 4 additions and 4 deletions

View File

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

View File

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

View File

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

View File

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