Skip to content

bug: a spark send settling during its expiry check can read failed #1508

Backlog

Description

@ovitrif

A Spark send whose expiry check runs while a retry or settlement is in progress can read failed for a moment, or emit a failure before its success arrives.

Cases

  • The expiry listing misses a live retry while its pending Activity row exists, so LightningService writes Failed to Activity before the retry check keeps the send Pending. A later sync corrects the row.
  • The expiry listing misses a live send and its success reaches Activity afterward, so the failure is emitted first. For a Paykit send, PaykitPaymentProofService can delete the proof before the success attaches the preimage.

Expected

The expiry check acts on one consistent view of the send, so neither a Failed row nor a failure event precedes a success.

Related to #1463. Found in @pwltr's review of #1415 (#1415 (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