Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This fixes the logic around automatically unlocking lnd if it is restarted and comes back online in a locked state while xud is running. Previously, it would be possible for lnd to go down, come back online, get unlocked, then quickly go down again leaving it in a `WAITING_UNLOCK` status. If lnd comes back online while still in this status, it would not be automatically unlocked. This fix ensures that lnd would be unlocked even in this case. Although it is somewhat of an edge case, it can manifest when lnd is unable to communicate with its backing node as its behavior is to immediately shut down after unlock when that is the case.
- Loading branch information