1
0

define wallet.dummy_address method

This commit is contained in:
ThomasV
2016-02-02 19:56:34 +01:00
parent 57af8d1d39
commit 3ee61c4c6e
3 changed files with 7 additions and 7 deletions

View File

@@ -275,8 +275,6 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError):
self.update_recently_visited(wallet.storage.path)
self.import_old_contacts()
# address used to create a dummy transaction and estimate transaction fee
a = self.wallet.addresses(False)
self.dummy_address = a[0] if a else None
self.accounts_expanded = self.wallet.storage.get('accounts_expanded',{})
self.current_account = self.wallet.storage.get("current_account", None)
self.history_list.update()
@@ -1095,7 +1093,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError):
else:
fee = self.fee_e.get_amount() if freeze_fee else None
if not outputs:
addr = self.payto_e.payto_address if self.payto_e.payto_address else self.dummy_address
addr = self.payto_e.payto_address if self.payto_e.payto_address else self.wallet.dummy_address()
outputs = [(TYPE_ADDRESS, addr, amount)]
try:
tx = self.wallet.make_unsigned_transaction(self.get_coins(), outputs, self.config, fee)