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
bug: swap claim waits keep polling after a wallet wipe #1926
A swap claim wait running when the wallet is wiped keeps polling, and then starts a new background loop.
Why
PubkySwapsRouteRepo.resetForWipe cancels the background advancing loops and ends the restore, but not the awaitClaim jobs on the repo scope, started by the send flow and by the restore collector (WalletViewModel.kt).
After the wipe the keychain is empty, so each advance fails with MnemonicNotFound; pollClaim retries it every 2 s for the rest of the 10-minute wait.
When the wait ends, awaitClaimOnce calls advanceInBackground, which adds a fresh loop that polls every 30 s until a new wallet has a mnemonic.
No funds are at risk: wasted work and log noise. The swap route is behind the debug-only PUBKY_SWAPS_ROUTES flag.
Fix
Have resetForWipe cancel the running claim waits too, or skip advanceInBackground once the wallet was wiped since the wait started.
Activity