Browse Source

Merge pull request #3180 from SomberNight/fix_storage_upgrade_13b

fix: wallet storage upgrade 13b had incorrect assumptions
3.0.x
ThomasV 7 years ago
committed by GitHub
parent
commit
7e4e96e5eb
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      lib/storage.py
  2. 11
      lib/tests/test_storage_upgrade.py

5
lib/storage.py

@ -358,11 +358,6 @@ class WalletStorage(PrintError):
if self.get('wallet_type') == 'standard':
if self.get('keystore').get('type') == 'imported':
pubkeys = self.get('keystore').get('keypairs').keys()
if self.get('pubkeys'):
pubkeys2 = set(self.get('pubkeys').get('receiving'))
assert len(pubkeys) == len(pubkeys2)
for pubkey in pubkeys:
assert pubkey in pubkeys2
d = {'change': []}
receiving_addresses = []
for pubkey in pubkeys:

11
lib/tests/test_storage_upgrade.py

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save