Ejemplo n.º 1
0
 def lnd_poll(lnd: Lnd, progress_callback, password: str):
     client = LndClient(lnd)
     try:
         client.unlock(password)
     except _Rendezvous as e:
         details = e.details()
         return details
Ejemplo n.º 2
0
 def lnd_poll(lnd: Lnd, progress_callback, password: str):
     client = LndClient(lnd)
     try:
         client.unlock(password)
     except _Rendezvous as e:
         details = e.details()
         log.warning('lnd_poll', details=details, exc_info=True)
         return details
Ejemplo n.º 3
0
 def unlock_wallet(lnd, progress_callback, password: str):
     if password is None:
         return 'wallet not found'
     client = LndClient(lnd)
     try:
         client.unlock(password)
         return None
     except _Rendezvous as e:
         details = e.details()
         return details
Ejemplo n.º 4
0
 def test_unlock(self, mocked_lnd_client: LndClient):
     mocked_lnd_client.unlock('test_password')
     assert mocked_lnd_client.wallet_unlocker.called_once()