-
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
xud doesn't try to connect to lnd if it's syncing #1039
Comments
Here another log showing both lnd's up, but xud not connecting to them after fully synced (fixed by restarting xud):
|
Can you also please include |
When I tweak the code to always treat
Seeing the log file output you got would probably help. |
System: Reproduced this again, here the important points in time with relevant log parts each: t0 = start xud, lndbtc and bitcoind container at the same time.
makes sense because t1 = unlock
|
I think what would be nice to fix with this:
|
As far as I understand it the Edit: Never mind, I think the post above explains the steps in enough detail, I'm still just confused as to why it still says |
Yes |
It looks like the grpc package is doing some weird caching where, once we make a |
It looks like the solution is actually to call |
This fixes an issue where attempting a `GetInfo` call to lnd while lnd is locked results in an `UNIMPLEMENTED` grpc error that persists even after lnd has been unlocked and the `GetInfo` call becomes available. We close grpc clients after connection verification attempts so that we have a fresh start for future attempts Fixes #1039.
Urgent off shoot from #684 since this makes things quite complicated for https://github.com/ExchangeUnion/xud-docker.
Issue
If LND is not synced:
xud
does not connect to lnd and also does not try to reconnect:Restarting
xud
while lnd is syncing ("synced_to_chain": false
)does not make it connect.Restarting
xud
after after lnd is synced ("synced_to_chain": true
) makes it connect correctly.Tested with BTC & LTC on testnet.
How it should be
xud
connects tolnd
, recognizes that it's"synced_to_chain": false
and printswaiting for sync
inxucli getinfo
. Regularly pulls"synced_to_chain"
value (every 10s) until true and then enableslnd
. No need for reading block height or any other sync status for now.The text was updated successfully, but these errors were encountered: