tfix: add type 'aaddress' in change output - electrum - Electrum Bitcoin wallet
HTML git clone https://git.parazyd.org/electrum
DIR Log
DIR Files
DIR Refs
DIR Submodules
---
DIR commit 6ad1c46aa55f2f54cb5a3f58d8b3df7fd9bb25f3
DIR parent 1bb00ff5af3a7f23f23c92b69cc2ff412731a7f3
HTML Author: ThomasV <thomasv@gitorious>
Date: Tue, 8 Jul 2014 23:53:20 +0200
fix: add type 'aaddress' in change output
Diffstat:
M gui/qt/main_window.py | 1 +
M lib/wallet.py | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
---
DIR diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py
t@@ -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
DIR diff --git a/lib/wallet.py b/lib/wallet.py
t@@ -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):