Skip to content

Commit 565b623

Browse files
committed
fix(lnd): don't check for manual unlock
This is a workaround fix to prevent unexplained crashes in lnd after it is unlocked. It prevents lnd from checking if it is manually unlocked outside of xud. The downside is that if lnd is unlocked while xud is running, xud won't be aware.
1 parent 2ce1b86 commit 565b623

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: lib/lndclient/LndClient.ts

+4
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,10 @@ class LndClient extends SwapClient {
433433
if (!this.isOperational()) {
434434
throw(errors.DISABLED);
435435
}
436+
if (this.isWaitingUnlock()) {
437+
return; // temporary workaround to prevent unexplained lnd crashes after unlock
438+
}
439+
436440
if (this.macaroonpath && this.meta.get('macaroon').length === 0) {
437441
// we have not loaded the macaroon yet - it is not created until the lnd wallet is initialized
438442
if (!this.isWaitingUnlock()) { // check that we are not already waiting for wallet init & unlock

0 commit comments

Comments
 (0)