Skip to content

bug: a link replacing a send can take the old swipe's result #2026

Backlog

Description

@ovitrif

A payable Lightning link that replaces an open send while that send's swipe is still running can be acted on with the old swipe:

  • The update quote taken at payment time (AppViewModel.updateSpendingBalanceIfNeeded) has no check that the send it belongs to is still the current one. If a link replaces the send while it waits, a higher fee shows on the replacement and resets its Confirm, or a quote failure takes the replacement to the payment error screen.
  • An on-chain swipe that resumes from its fee check (AppViewModel.kt:6785–6791 at fix: keep confirm open until the swipe finishes #2017's base) can set shouldConfirmPay on the replacement, which can then be submitted without a swipe of its own. This needs QuickPay and PIN for payments off, and a trace showing the replacement reaching Confirm before the fee check resumes.

Both predate #2017; raised in its review: #2017 (review).

Expected: work that resumes for a send the user left is dropped, as the first update quote already does through sendStateGeneration.

Activity

  1. added this to the 3.3.0 milestone on Nov 25, 2026
  2. added theissue type on Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions