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

spv: Teardown syncer after all peers are lost #2465

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

jrick
Copy link
Member

@jrick jrick commented Jan 27, 2025

Recreate a new syncer in the SPV reconnect loop in main. This will allow
initial sync logic to be reperformed if peers can be connected later.

This also adds a forced 5s backoff before peers connection attempts are made
again, matching the backoff behavior for RPC syncing.

Rebased over #2463.

Copy link
Member

@JoeGruffins JoeGruffins left a comment

Choose a reason for hiding this comment

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

The synced problem is fixed but the spinning cpu is not. You can start the wallet with no internet connection to see this immediately.

@jrick
Copy link
Member Author

jrick commented Jan 28, 2025

Try #2466 for the spinning reconnect issue

jrick added 3 commits January 28, 2025 15:02
During clean shutdown, signal the mixing client to shutdown first, waiting for
it to finish running, before closing the RPC and SPV syncers.

Updates the mixing module to a version that supports continuing active mixes
before terminating the mixing client.
Recreate a new syncer in the SPV reconnect loop in main.  This will allow
initial sync logic to be reperformed if peers can be connected later.

This also adds a forced 5s backoff before peers connection attempts are made
again, matching the backoff behavior for RPC syncing.
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.

2 participants