commit 62179fad58819342106311051df236dd7b652fab
parent f1e55a5b16594eb55ab078828126c2c5176d6e1e
Author: ThomasV <thomasv1@gmx.de>
Date: Sat, 6 Sep 2014 16:59:53 +0200
Merge pull request #772 from dabura667/fiximportchange
Make change address for imported keys the same
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/wallet.py b/lib/wallet.py
@@ -626,7 +626,7 @@ class Abstract_Wallet(object):
account, _ = self.get_address_index(address)
if not self.use_change or account == IMPORTED_ACCOUNT:
- change_addr = inputs[-1]['address']
+ change_addr = address
else:
change_addr = self.accounts[account].get_addresses(1)[-self.gap_limit_for_change]