Repository navigation
Conversation
Skip currency rate polling while no activity is started, since Android blocks a backgrounded app's network and ON_START refreshes anyway. Log Spark's background sync failures at debug. Log a sync retry left to the sync in progress as deferred instead of succeeded. Fixes #2241 Fixes #2242 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Regtest APKDownload bitkit-dev-debug universal APK (expires in 30 days). |
13 tasks done
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #2241
Fixes #2242
Mainnet QA of 3.2.0 found two kinds of misleading log lines: background refreshes that fail because Android blocks the app's network, and sync retries logged as succeeded when they never synced (QA report).
Description
CurrencyRepo: the 2-minute rate poll skips its tick while no activity is started. Android blocks a backgrounded app's network about 6 s after it leaves the screen, so those refreshes only failed and logged errors. ON_START already refreshes rates when the user returns.SparkRepo: Spark's SDK keeps syncing in the background. Bitkit can't pause it without disconnecting, so a failed sync read in the background now logs at debug instead of warn.LightningRepo: a sync retry that finds a sync already in progress logsSync retry deferred to the sync in progressinstead ofSync retry succeeded. The running sync loops once more for it, as before.Out of Scope
Design
N/A — no UI changes.
Preview
N/A
QA Notes
Setup
Dev (regtest) build of this branch on a phone with a Spark wallet.
Journeys
N/A — no user-visible behaviour change.
Manual Tests
Currency rates refresh failederrors, and Spark sync failures appear only as debug lines.Currency rates refreshed successfully).🤖 Generated with Claude Code