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: paid spark send shows as failed after a storage error #2025
A Spark send that completed can show as failed when a cache write fails on the settlement path.
In SparkRepo.kt, the cache writes in payInvoice around the uncertain-send bookkeeping (removeSparkUncertainSend and its neighbours) and in settleUncertainSend can still throw. If removeSparkUncertainSend fails after Spark returned COMPLETED, payInvoice returns the IOException for a paid invoice and LightningRepo restores the previous rail, so the user sees a failure.
There is no double pay: the uncertain entry stays, a retry reads PENDING, and the next sync settles it. Until then the send looks failed.
Expected: these writes are best-effort like the own-failure marker writes in #2015, so a storage error never turns a completed send into a failure.
Activity