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

Loop Out Failed - still paid prepay #734

Open
lazydrone opened this issue Apr 24, 2024 · 10 comments
Open

Loop Out Failed - still paid prepay #734

lazydrone opened this issue Apr 24, 2024 · 10 comments

Comments

@lazydrone
Copy link

I attempted three loop outs on April 10th and all three failed. However, it appears I still paid the 30,000 Sats prepayment.
The payment preimages for those prepayments are below.

c460e1a8408f524eae897a76bfe38b55dad4958e1c63c118382da4182b61579d
26823844265aba4fa3a933b5fb1160d1ded1687216f92bc7905773a64eaf7064
e27f848d7e0c782ed612afe16969d8260dc8cc3d4949c27a2ab298f976d85013

I was under the impression that the prepayment would get credited back if the loop-out failed.

image
image
image

Did not attempt to reproduce. Have not had issues in the past.

Lightning Terminal

Yes, using via Umbrel

Lightning Terminal UI

0.12.4-alpha

Linux Ryzen 9 5900x 32GB Ram 2TB NVME drive

Linux Mint 21.2 Cinnamon 5.8.4

@hieblmi
Copy link
Collaborator

hieblmi commented Apr 24, 2024

Hi @lazydrone, thanks for submitting this issue.

Do you have by any chance access to the log files of the loop daemon that shows these swap attempts? That would be helpful for the investigation.

@lazydrone
Copy link
Author

I looked for the log files but didn't see any in the .loop directory (it was empty) Do you know what the name of the log file would be?

@hieblmi
Copy link
Collaborator

hieblmi commented Apr 25, 2024

I am not quite sure but I think it depends on whether you run loop within lightning terminal in integrated mode or not.

Could you check if you see a loop log in subdirs of ~/.lit?

@lazydrone
Copy link
Author

I don't see a loop log. There is a litd.log, but unfortunately it only goes back to the 14th and this happened on the 10th. Anything else I could provide?

@hieblmi
Copy link
Collaborator

hieblmi commented Apr 26, 2024

Are you able to provide the ids of the swaps via loop listswaps.
Also, did you shut down you loop client daemon for a while after the prepayments had been made?

@lazydrone
Copy link
Author

lazydrone commented Apr 26, 2024

The Swaps don't show. Only the successful loop out I did on the 14th is listed. The others that failed are not listed.

I don't recall whether I shut it down - I don't remember specifically shutting it down.

"d88f74253ce14433a4db4ba33c950d90392935f9951b407cb5735cfffb268979","on-chain","","Apr 11, 2024","10:12 AM","6619035","0","Received",""
"5e9e18ebaec6dd66b4f259fd5f9122295fe114e56ed8c75e8e30e185e65f0445","off-chain","","Apr 10, 2024","9:27 PM","-30000","58","Sent",""
"d87bb3d7c6a53d5fb338968e073e7a9e5bee76c1e2389514d8e64ce90761bdb8","off-chain","","Apr 10, 2024","9:27 PM","-30000","58","Sent",""
"7f86c75e9340561fef4775f20deda4b9a68054101e85492f91fcadfe0185a28d","off-chain","","Apr 10, 2024","9:26 PM","-30000","58","Sent",""
"56984e0a1427bcd66ca465dfb48e1ae0d90ab164fd4db4190cc0d850965198db","off-chain","","Apr 10, 2024","9:26 PM","-1","0","Sent",""
"c71e74a557307b996d5d1b36857cb3be1b630c65ad3e10a2e411d2eb7037c7b9","on-chain","","Apr 10, 2024","12:58 PM","-2000000","3080","Channel

I do see the successful loop-out on the 14th.
"fd2b8a49ee1dc01dbed873aac236f310587de68f77336eaa161c68dbd9b52ffa","on-chain","","Apr 15, 2024","3:37 AM","3994345","0","Received","BatchOutSweepSuccess -- 1"
"265792065621fa6942b85b84b23c95835a77a2af9b8ebfa3521c9d7a64800af8","off-chain","","Apr 14, 2024","8:00 PM","-30000","57","Sent",""
"e2d54f22e9fcb88c7c21ef5b1d27500a1bba7ba35963e522e7747110851b469e","off-chain","","Apr 14, 2024","8:00 PM","-3975619","7709","Sent",""
"2b5880f3402490a524985c254c19ac8ff7798f00d1f9c3885c7bd81d00166ff4","off-chain","","Apr 14, 2024","8:00 PM","-1","0","Sent",""

@hieblmi
Copy link
Collaborator

hieblmi commented Apr 29, 2024

Your client doesn't show any swaps under loop listswaps? Could you please check that again?

Are you saying that the started swaps on the 10th now do show up as completed on the 14th?

@lazydrone
Copy link
Author

lazydrone commented May 2, 2024

No. They don't show the swaps. I did another one on the 14th and it shows and every loop out I've done since completed without issue, But the 3 that I attempted on the 10th don't show a swap but the 30,000 prepaid was paid. There is no recorded of the attempted swap, only the (3) 30,000 prepaid payments.

@hieblmi
Copy link
Collaborator

hieblmi commented May 3, 2024

Ok so I've looked at the first failed swap for preimage c460e1a8408f524eae897a76bfe38b55dad4958e1c63c118382da4182b61579d. I found the swap id in the server logs, it is
abb5318323c1eafede1dec9ca870f8e8a8d150117fc3fe40f78a0283a71b46f5. Could you check if you if your node sees info with loop swapinfo abb5318323c1eafede1dec9ca870f8e8a8d150117fc3fe40f78a0283a71b46f5?

For this swap the server published a timeout transaction after the prepay had settled. That means that it is very likely that your client was down while it was expected to pay the swap invoice. Your prepay is used by the server to compensate for opportunity costs and sweeping the loop out htlc back to the server wallet.

Without having checked I assume that's also what happened to the other two swaps.

@hieblmi
Copy link
Collaborator

hieblmi commented Jul 8, 2024

@lazydrone would you be able to confirm if your loop client had downtime during the duration of the swap?

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

2 participants