nutshell
nutshell copied to clipboard
Proof is spent when Lightning node has failed?
I've had this happen a couple of times where my Lightning is not online and a proof is attempted to be redeemed (melt request). It seems like the proof is set as spent first and then the lightning request fails. An error is raised, but in effect the proof is as good as gone.
I haven't yet dug into the code yet, but wondering if this an error condition that has been contemplated. Any insights before I dig in?
Thanks,
Tim
IIRC with the new melt flow the notes should be set as "SPENT" only when we are certain the quote was paid, and set as "PENDING" if we are unsure about the quote status. Did you check if they are stuck as "PENDING"?