This commit is contained in:
ThomasV 2014-04-20 10:42:13 +02:00
parent 6c96b38abf
commit 41f9da1559
3 changed files with 6 additions and 2 deletions

View File

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

View File

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

View File

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