Make change address for imported keys the same

Fixes #769
This commit is contained in:
dabura667 2014-07-26 15:24:55 +09:00
parent 7abbf329b6
commit 8722a37f13

View file

@ -603,7 +603,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]