Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Melt result state PAID while related lightning payment FAILED #614

Open
minibits-cash opened this issue Sep 8, 2024 · 0 comments
Open

Comments

@minibits-cash
Copy link

minibits-cash commented Sep 8, 2024

I had a long time stuck melt-related lightning payment in IN_FLIGHT status. In spite of the fact that related expiration block heights expired, it did not clear up until I restarted the lnd node. After that, IN_FLIGHT htlc-s were resolved and payment finally timed-out:

{ "payment_hash": "22e9e1334ee66feceed667fcc10d1db60100b059b8bdfb91beacd4aef4d7dace", "value": "****", "creation_date": "1725151366", "fee": "0", "payment_preimage": "0000000000000000000000000000000000000000000000000000000000000000", "value_sat": "****", "value_msat": "****000", "payment_request": "******", "status": "FAILED", "fee_sat": "0", "fee_msat": "0", "creation_time_ns": "1725151366317091263", "htlcs": [], "payment_index": "****", "failure_reason": "FAILURE_REASON_TIMEOUT" },

However when I checked related meltquote I found, that Nutshell turned the melt quote state to PAID - this is an issue.

I checked the nutshell logs and at that time I found the line, where fee matched the fee_reserve of the payment:

Sep 08 20:30:05 nutshell poetry[2793]: 2024-09-08 20:30:05.23 | DEBUG | cashu.mint.ledger:melt:920 | Melt – Ok: True: preimage: 0000000000000000000000000000000000000000000000000000000000000000, fee: **** msat

I use LNBits as a funding source, here are related LNbits logs just after the restart:

lnbits poetry[80066]: 2024-09-08 20:30:04.85 | WARNING | didn't receive checking_id from backend, payment may be stuck in database: 22e9e1334ee66feceed667fcc10d1db60100b059b8bdfb91b

lnbits poetry[80066]: 2024-09-08 20:30:05.22 | INFO | 10.7.1.229:34856 - "GET /api/v1/payments/22e9e1334ee66feceed667fcc10d1db60100b059b8bdfb91beacd4aef4d7dace HTTP/1.1" 200

lnbits poetry[80066]: 2024-09-08 20:39:27.55 | WARNING | Deleting outgoing failed payment 22e9e1334ee66feceed667fcc10d1db60100b059b8bdfb91beacd4aef4d7dace: failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant