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: a spark send killed before sending refuses a corrected amount #2121
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
Pay an amountless invoice, and kill the app between SparkRepo.payInvoice saving the attempt and calling Spark.
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.
Activity