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 }}
Repository navigation
fix(platform-wallet): restart background shielded sync when a rebuild is abandoned by its caller #6447
TL;DR: If a Rust caller drops the shielded-tree rebuild before it finishes, periodic shielded sync can stay stopped until something starts it again.
User story
As a developer using the Rust platform-wallet, I want background shielded sync to keep its previous running state even when I cancel a rebuild, so my app does not silently stop syncing.
Scenario
Base flow
Background shielded sync is running. The app calls rebuild_shielded_tree and then drops the returned future, for example on a timeout or task cancellation.
Actual behavior
The rebuild first pauses background sync. Its restart runs only after the awaited reset returns, so dropping the future during the pause or while waiting for the store lock leaves sync stopped.
Expected behavior
Either the rebuild completes as a manager-owned operation that restores the previous sync state on every path, or dropping it restores that state.
Detailed discussion
Proposed approach: run the reset and restart as a manager-owned task with the same stop ordering as today, and have the public method only await its completion. The C export waits synchronously and is not affected.
Activity