electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 878cf6fb0613639b163b9a608580eff1d23eedd8
parent c0b9a9c464b567aa84c4839f3caa7b2e61abe8cc
Author: thomasv <thomasv@gitorious>
Date:   Fri, 16 Dec 2011 09:37:13 +0100

fix change addresses in upgrade script

Diffstat:
Mclient/upgrade.py | 9++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/client/upgrade.py b/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,