else:
print_msg("Warning: Found no history for this wallet")
else:
- wallet.create_accounts()
wallet.synchronize()
print_msg("Warning: This wallet was restored offline. It may contain more addresses than displayed.")
else:
wallet.init_seed(None)
wallet.save_seed()
- wallet.create_accounts()
wallet.synchronize()
print_msg("Your wallet generation seed is:\n\"%s\""% wallet.get_mnemonic(None))
print_msg("Please keep it in a safe place; if you lose it, you will not be able to restore your wallet.")
wallet.init_seed(None)
self.show_seed()
wallet.save_seed()
- wallet.create_accounts()
wallet.synchronize() # generate first addresses offline
elif action == 'restore':
if action == 'create':
wallet.init_seed(None)
wallet.save_seed()
- wallet.create_accounts()
wallet.synchronize() # generate first addresses offline
elif action == 'restore':
seed = self.seed_dialog()
if self.verify_seed(wallet):
def create():
wallet.save_seed()
- wallet.create_accounts()
wallet.synchronize() # generate first addresses offline
self.waiting_dialog(create)
else:
wallet.seed = ''
wallet.create_watching_only_wallet(mpk)
-
else: raise
#if not self.config.get('server'):
# find out what kind of wallet we are
try:
- seed.decode('hex')
+ seed.strip().decode('hex')
self.seed_version = 4
self.seed = str(seed)
return
def save_seed(self):
self.storage.put('seed', self.seed, True)
self.storage.put('seed_version', self.seed_version, True)
+ self.create_accounts()
+
def create_watching_only_wallet(self, params):
K0, c0 = params
# wait until we are connected, because the user might have selected another server
if self.network:
wait_for_network()
-
- self.create_accounts()
-
- if self.network:
wait_for_wallet()
else:
self.synchronize()