URI: 
       tMerge pull request #772 from dabura667/fiximportchange - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 62179fad58819342106311051df236dd7b652fab
   DIR parent f1e55a5b16594eb55ab078828126c2c5176d6e1e
  HTML 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:
         M lib/wallet.py                       |       2 +-
       
       1 file changed, 1 insertion(+), 1 deletion(-)
       ---
   DIR diff --git a/lib/wallet.py b/lib/wallet.py
       t@@ -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]