Skip to content

Commit

Permalink
Debug new wallet creation
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreRochard committed Sep 6, 2021
1 parent a8a42aa commit dc592c7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions node_launcher/gui/system_tray_widgets/lnd_output_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def generate_seed(self, new_seed_password: str):

seed = generate_seed_response.cipher_seed_mnemonic

keyring_service_name = f'lnd_seed'
keyring_service_name = f'lnd_seed_{self.node_set.bitcoin.network}'
keyring_user_name = ''.join(seed[0:2])
log.info(
'generate_seed',
Expand Down Expand Up @@ -212,7 +212,8 @@ def get_password(self):
return passwords

def auto_unlock_wallet(self):
for password in self.get_password():
passwords = self.get_password()
for password in passwords:
worker = Worker(
fn=self.unlock_wallet,
lnd=self.node_set.lnd,
Expand All @@ -221,6 +222,8 @@ def auto_unlock_wallet(self):
worker.signals.result.connect(self.handle_unlock_wallet)
worker.signals.error.connect(self.handle_unlock_wallet)
self.threadpool.start(worker)
if len(passwords) == 0:
self.handle_unlock_wallet('wallet not found')

def show(self):
self.showMaximized()
Expand Down

0 comments on commit dc592c7

Please sign in to comment.