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 behavior when switching nodes #4036

Merged
merged 1 commit into from
Sep 28, 2022

Conversation

j-berman
Copy link
Contributor

Works together with the fixes in Monero PR monero-project/monero#8585.

The most significant fix in this PR is that it prevents the GUI from getting stuck in an infinite "Connecting" loop when connecting to a non-existent (or sometimes offline) daemon.

It also fixes some jank (and some of the incorrect underlying behavior) when switching nodes. The underlying async behavior still isn't perfect, but it's a move in a better direction. See the demos below.

GUI v0.18.1.1 + this PR + Monero PR 8585

Not shown: connecting to 1.2.3.4:18081 takes 20 seconds to time out and display "Disconnected"

PR behavior

GUI v0.18.1.1 + Monero PR 8585 (this PR is excluded)

Not shown: connecting to 1.2.3.4:18081 gets stuck infinite "Connecting"

Only Monero repo PR behavior

- Improved synchronization when switching nodes
- Avoid infinite "Connecting" loop
- Pause refresh loop while switching, don't start until connected
Copy link

@hinto-janai hinto-janai left a comment

Choose a reason for hiding this comment

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

Tested this with monero-project/monero#8585 on old nodes, offline nodes, bad ips

Error message + timeouts work correctly

@luigi1111 luigi1111 merged commit 085f4af into monero-project:master Sep 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants