Skip to content

bug: a spark send killed before sending refuses a corrected amount #2121

Backlog

Description

@ovitrif

If the app is killed after a Spark send's attempt and hold are saved but before the SDK call, the restored hold refuses a repeat of the invoice at a corrected amount, although nothing was sent.

Steps

  1. Pay an amountless invoice, and kill the app between SparkRepo.payInvoice saving the attempt and calling Spark.
  2. Reopen the app and pay the same invoice at another amount.

Expected

The corrected amount goes out, since the first attempt never reached Spark.

Actual

The repeat is refused with SparkError.SendRefused. Paying the original amount, or paying a fresh invoice, still works.

Found in @pwltr's review of #2071 (#2071 (review)).

Activity

  1. added this to the 3.3.0 milestone on Nov 26, 2026
  2. added theissue type on Nov 26, 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