ThomasV 11 years ago
parent
commit
41f9da1559
  1. 5
      gui/qt/installwizard.py
  2. 2
      lib/bitcoin.py
  3. 1
      lib/wallet.py

5
gui/qt/installwizard.py

@ -322,7 +322,7 @@ class InstallWizard(QDialog):
elif Wallet.is_mpk(text): elif Wallet.is_mpk(text):
wallet = Wallet.from_mpk(text, self.storage) wallet = Wallet.from_mpk(text, self.storage)
else: else:
return raise
elif t in ['2of2', '2of3']: elif t in ['2of2', '2of3']:
r = self.double_seed_dialog() r = self.double_seed_dialog()
@ -347,6 +347,9 @@ class InstallWizard(QDialog):
wallet.create_accounts(None) wallet.create_accounts(None)
else:
raise

2
lib/bitcoin.py

@ -84,7 +84,7 @@ def is_old_seed(seed):
try: try:
seed.decode('hex') seed.decode('hex')
is_hex = True is_hex = (len(seed) == 32)
except Exception: except Exception:
is_hex = False is_hex = False

1
lib/wallet.py

@ -1751,6 +1751,7 @@ class OldWallet(NewWallet):
def create_watching_only_wallet(self, mpk): def create_watching_only_wallet(self, mpk):
self.seed_version = OLD_SEED_VERSION self.seed_version = OLD_SEED_VERSION
self.storage.put('seed_version', self.seed_version, True) self.storage.put('seed_version', self.seed_version, True)
self.storage.put('master_public_key', mpk, True)
self.create_account(mpk) self.create_account(mpk)
def get_seed(self, password): def get_seed(self, password):

Loading…
Cancel
Save