You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 19, 2023. It is now read-only.
Just to make things more robust If synced_to_chain is false (usually after a LND restart) it should return a response saying it can't generate an invoice rather than hanging
The text was updated successfully, but these errors were encountered:
The issue is the call to getinfo can sometimes take a few seconds (for so for undetermined reasons), and if I were to call it prior to every invoice generation call, it can slow it down significantly :/
After putting some thought into it, I think it makes sense to have a goroutine calling lnd periodically, and:
If call worked, but now fails: suicide
If call returns not synced to chain tip: block API with some "not ready" error
If call worked, and synced to chain tip: remove the block.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
bugSomething isn't workingenhancementNew feature or request
Just to make things more robust If
synced_to_chain
is false (usually after a LND restart) it should return a response saying it can't generate an invoice rather than hangingThe text was updated successfully, but these errors were encountered: