Skip to content

bug: refused allowance payment can stay counted after a failed report #2115

Backlog

Description

@ovitrif

Description

An automatic (allowance) Lightning payment that is refused before anything is sent ends its attempt with failUnsent (PaykitAllowanceExecutor.kt), which records PaymentOutcome.FAILED through the SDK before the local journal moves on. If that SDK write fails too, the journal entry stays at SENDING. Recovery then finds no rail result for the payment hash and records the attempt as UNKNOWN, so it can keep counting against the allowance's monthly limit.

This applies to every refusal before send (a Spark refusal, an expired deadline, and since #2070 a refusal at submission), so it predates that PR.

Raised in #2070 (review).

Expected

An attempt refused before anything was sent ends as failed after recovery, even when the first failure report could not be saved, and releases its allowance capacity.

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