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: refused allowance payment can stay counted after a failed report #2115
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.
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