fix: add type 'aaddress' in change output

This commit is contained in:
ThomasV 2014-07-08 23:53:20 +02:00
parent 1bb00ff5af
commit 6ad1c46aa5
2 changed files with 2 additions and 1 deletions

View File

@ -1060,6 +1060,7 @@ class ElectrumWindow(QMainWindow):
self.wallet.add_keypairs(tx, keypairs, password)
self.wallet.sign_transaction(tx, keypairs, password)
except Exception as e:
traceback.print_exc(file=sys.stdout)
tx.error = str(e)
return tx

View File

@ -648,7 +648,7 @@ class Abstract_Wallet:
# Insert the change output at a random position in the outputs
posn = random.randint(0, len(outputs))
outputs[posn:posn] = [( change_addr, change_amount)]
outputs[posn:posn] = [( 'address', change_addr, change_amount)]
return outputs
def get_history(self, address):