Browse Source

Merge pull request #772 from dabura667/fiximportchange

Make change address for imported keys the same
283
ThomasV 10 years ago
parent
commit
62179fad58
  1. 2
      lib/wallet.py

2
lib/wallet.py

@ -626,7 +626,7 @@ class Abstract_Wallet(object):
account, _ = self.get_address_index(address) account, _ = self.get_address_index(address)
if not self.use_change or account == IMPORTED_ACCOUNT: if not self.use_change or account == IMPORTED_ACCOUNT:
change_addr = inputs[-1]['address'] change_addr = address
else: else:
change_addr = self.accounts[account].get_addresses(1)[-self.gap_limit_for_change] change_addr = self.accounts[account].get_addresses(1)[-self.gap_limit_for_change]

Loading…
Cancel
Save