Skip to content

bug: a refused overlapping spark send stays pending #1900

Closed

Description

@ovitrif

Description

When two Spark sends of one invoice overlap, the one refused at admission (#1898) can leave its caller on Payment Pending indefinitely.

hasRecordedSendSince stays true after the competing send has settled, and that branch in LightningRepo always throws PaymentPendingException. The refusal skips AppViewModel.sendLightning's success-only settledSparkSendEvent lookup. Its caller tracks the hash only after the completion event, and SendPendingViewModel waits only for future resolutions, so the completion it missed never arrives.

To do

Before returning pending for a refused send, reconcile the existing send's outcome: return paid when it settled, or the failure when it failed. Add a test where the competing send completes first.

Raised by @coreyphillips in #1898 (comment).

Activity

  1. added this to the 3.2.0 milestone on Nov 12, 2026
  2. ovitrif commented on Nov 12, 2026

    @ovitrif
    CollaboratorAuthor

    Milestone 3.2.0: this issue is a bug in Spark sends, a follow-up to #1895, and Spark sends ship in 3.2.0.

  3. self-assigned this
    on Nov 12, 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