Skip to content

bug: spending balance kept after a full withdrawal #1849

Closed

Description

@ovitrif

Found in @pwltr's review of #1697 at 5953744 (review).

Behaviour

While Spark reports a zero balance together with a sync error, SparkRepo.refresh keeps showing the last Spending balance (keptBalanceSats), so a sync failure doesn't flash 0. After a withdrawal that spent the whole Spending balance, a sync error in the same refresh keeps the old balance on screen even though it was spent. Sending still uses Spark's actual balance, so nothing can be overspent; only the shown balance is stale until a sync succeeds.

Open

  • Confirm the case on a device: withdraw the full Spending balance to Savings, then make the next sync fail.
  • If it reproduces, drop the kept balance once a withdrawal of it succeeded.

Activity

  1. added this to the 3.2.0 milestone on Nov 11, 2026
  2. changed the title [-]fix: spending balance kept after a full withdrawal[/-] [+]bug: spending balance kept after a full withdrawal[/+] on Nov 11, 2026
  3. self-assigned this
    on Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions