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

mixclient: Wait for runs to finish before closing client #3467

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

Conversation

jrick
Copy link
Member

@jrick jrick commented Jan 23, 2025

This improves mix reliability in case a wallet is shut down while in the
middle of a mix run.

Requires additional wallet changes to properly order the shutdown of mixclient
and the RPC/SPV syncers.

Rebased over #3463.

jrick added 2 commits January 23, 2025 21:17
This commit modifies the mixing client to consider fully formed sessions
(where all peers have sent a KE with matching sessions), even if other
sessions have already been attempted after.  Previously, only the most
recently attempted session would ever be used, and clients would only
ratchet-down the peers they would mix with.

With this change, initial session disagreement can be recovered from more
gracefully, as some peers will form an alternate session matching the session
that other peers originally tried.

This commit also introduces a fix for a race that could result in root-solving
wallets not publishing their solutions in a timely manner, which would result
in non-solving wallets eventually being blamed for DC timeout.
This improves mix reliability in case a wallet is shut down while in the
middle of a mix run.

Requires additional wallet changes to properly order the shutdown of mixclient
and the RPC/SPV syncers.
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.

1 participant