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 refused overlapping spark send stays pending #1900
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.
Activity
ovitrif commentedon Nov 12, 2026
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.