Browse Source

fix change addresses in upgrade script

283
thomasv 13 years ago
parent
commit
878cf6fb06
  1. 9
      client/upgrade.py

9
client/upgrade.py

@ -66,7 +66,14 @@ if __name__ == "__main__":
exit(1)
if type(x) == tuple:
seed_version, use_encryption, fee, host, port, blocks, seed, addresses, private_keys, change_addresses, status, history, labels, addressbook = x
seed_version, use_encryption, fee, host, port, blocks, seed, all_addresses, private_keys, change_indexes, status, history, labels, addressbook = x
addresses = []
change_addresses = []
for i in range(len(all_addresses)):
if i in change_indexes:
change_addresses.append(all_addresses[i])
else:
addresses.append(all_addresses[i])
s = {
'seed_version':seed_version,
'use_encryption':use_encryption,

Loading…
Cancel
Save