Exemplo n.º 1
0
 def get_wallet():
     path = self.config.get_wallet_path()
     storage = lbryum.wallet.WalletStorage(path)
     wallet = lbryum.wallet.Wallet(storage)
     if not storage.file_exists:
         self.first_run = True
         seed = wallet.make_seed()
         wallet.add_seed(seed, None)
         wallet.create_master_keys(None)
         wallet.create_main_account()
         wallet.synchronize()
     self.wallet = wallet
     return defer.succeed(True)
Exemplo n.º 2
0
 def _load_wallet(self):
     path = self.config.get_wallet_path()
     storage = lbryum.wallet.WalletStorage(path)
     wallet = lbryum.wallet.Wallet(storage)
     if not storage.file_exists:
         self.is_first_run = True
         seed = wallet.make_seed()
         wallet.add_seed(seed, None)
         wallet.create_master_keys(None)
         wallet.create_main_account()
         wallet.synchronize()
     self.wallet = wallet
     self._check_large_wallet()
     return defer.succeed(True)