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
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
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
def test_unlock(self, mocked_lnd_client: LndClient): mocked_lnd_client.unlock('test_password') assert mocked_lnd_client.wallet_unlocker.called_once()