Skip to content
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

Fix LSP connection failures during maintance #1075

Merged
merged 3 commits into from
Mar 21, 2024
Merged

Fix LSP connection failures during maintance #1075

merged 3 commits into from
Mar 21, 2024

Conversation

benthecarman
Copy link
Collaborator

@benthecarman benthecarman commented Mar 21, 2024

Fixes #1065

First commit adds a bunch of logging for us

Second commit fixes an issue i discovered while debugging. If we changed the LSP env variable then it'd set the lsp in the user's config to null. This would cause problems if we ever changed the default LSP as then it would break people's old wallets.

Third commit fixes the root issue, was a bug from #1018 where all the optimizations I did weren't being fully utilized because we weren't using the saved LSP config but preferring the one from env variables which did not have the connection info so we'd have to refetch it.

For simulating the LSP being down I added another domain for the lsp signet-lsp.mutinynet.com and would change the proxy pass port when I wanted it to be down

@benthecarman benthecarman added the bug Something isn't working label Mar 21, 2024
Copy link
Contributor

@TonyGiorgio TonyGiorgio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes sense why I've seen some logs recently that there was no LSP information available for wallets that were existing.

@benthecarman benthecarman merged commit 4bd50dd into master Mar 21, 2024
9 checks passed
@benthecarman benthecarman deleted the lsp-fix branch March 21, 2024 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error: Failed to make a request to the LSP.
2 participants