-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LND autounlock doesn't work if lnd backend changed #1913
Comments
Just so I'm clear on what's happening:
Is all that correct? |
Yes. @sangaman The xud will mark lnd as locked when any gRPC call returned UNIMPLEMENTED. So I designed the case below
Now lndbtc shows "Wallet locked". In xud-ctl shell Step 1. Try
|
Correct. Here the full flow: ExchangeUnion/xud-docker#724 (comment) |
@sangaman So I think one problem is that the xucli |
@kilrau @reliveyy Is the tls cert changing between lnd restarts? If it's a different lnd instance with a different data dir I would expect that to be the case. I see a lot of
I'm not sure this is the issue, since xud is already unlocked when the lnd restart happens. |
I tried to reproduce this today to check on the certs by doing the same
Certificates didn't change so far. Will try once more. |
In xud-docker, if lnd is restarted via
docker restart
, ExchangeUnion/xud-docker#724 (comment), xud unlocks lnd automatically without problems. If lnd is restarted with a different backend though (e.g. Neutrino -> bitcoind), this doesn't work. alsoxucli unlock
doesn't unlock lnd's in that case, manually runninglndbtc-lncli unlock
works. Restarting xud fixes this andxucli unlock
successfully unlocks lnds.The text was updated successfully, but these errors were encountered: