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

LDK Lightning Wallet: 2 channels totally disappeared #5157

Open
stevenroose opened this issue Oct 28, 2022 · 10 comments
Open

LDK Lightning Wallet: 2 channels totally disappeared #5157

stevenroose opened this issue Oct 28, 2022 · 10 comments

Comments

@stevenroose
Copy link

stevenroose commented Oct 28, 2022

So I created an LDK wallet about a month and a half ago. Created 2 channels. Then made one payment that succeeded. About a week later, no more, I tried to make another tx and suddenly my 2 channels disappear. The money is also gone, it doesn't show up anywhere.

At first, the "Manage Funds" dialog said something about confirmations, so I thought I'd just have to wait, but after a day or two the dialog was empty. I went on the BlueWallet Telegram chat, explained the issue and was told that I'd probably just had to wait for the funds to show back up because channels were closed.

It's been some weeks now, and nothing is showing up, so I'm making this issue.

These are the two transaction of the channel creations that are still in my list:

They both say "revoked lightning force close" at some point in the graph, with then the money going somewhere and disappearing.

I guess the money is gone, but I'm curious to what happened. Since I opened the channel, the only way for the counterparties to claim all the money is if LDK would have published something wrong and having been punished, no?

Also, since BlueWallet doesn't show any mention of the channels that existed before, I can't seem to find the node IDs of the counterparties. I think one was ACINQ and one was another large party (it's nice that BlueWallet lets you chose from a list), so I could in theory contact them.

Are you reporting a bug?

Please provide:

  • your phone model and OS version: not relevant I think
  • BlueWallet app version (settings->about->scroll down): 6.3.1, but when it happened it was earlier
  • self-test passes? Open settings->about->scroll down, tap "Run self-test": yes
  • unique ID for our crash reporting service (settings->about->scroll down, tap "copy"): 7cd5f27da82c9231
@Darth-Coin
Copy link

Darth-Coin commented Jun 18, 2023

I am in the same situation.
I had a channel with Coingate, worked just fine for several days, making payments etc.
Today I just opened BW LDK, I saw the balance and in just 2 seconds meanwhile was syncing or something, I just saw how the sats disappeared. 0 sats balance.
Checked in channels (manage funds) and the channel was gone. No trace of it, not even a mention that channel was closed or something.
Checked the LDK logs and export them, nothing mentioned about a closure.
Checked the onchain wallet (a standard bech32 wallet) from where I was opening the channel originally (is supposed that when you close a channel the funds will go back to that original wallet) and was nothing, no incoming tx.

@ncoelho we need something to debug this behavior.
Please advise.


Device: Android 12 (LineageOS)
Bluewallet version: v6.4.5
self-test passes? Open settings->about->scroll down, tap "Run self-test": yes

@Darth-Coin
Copy link

@ncoelho please can you comment on this issue?
Or is Bluewallet a dead app already?

@Overtorment
Copy link
Member

hey guys, LDK is still experimental.

force-close happen, and usually you will need to wait up to 2 weeks for coins to show up.

check out Channels screen, it should look something like

image

giving you an option to claim back balance from temporary address (you control with your seed btw), or at least showing you remaining wait time for the balance to mature

@Darth-Coin
Copy link

@Overtorment I know that LDK is experimental. That's why I was just wanted to test it to see how it works and report issues to you.
I know that a force close could take several days, I am not a total noob in BTC/LN.
Channel was closed more than 2 months ago, with Coingate node. It was just a testing small channel of 100k sats and I made only a small payment from it, just few days before.
I do NOT have that screen like you mention, I always check all the details. No "claim" button, is just empty.
In channels (manage funds section) I see all empty, not even some logs about closing the channel, nothing.
I made an export of the logs, see attached, in case is needed to identify the issue.
rn-ldk.log

@Overtorment
Copy link
Member

unfortunately, ldk logs do not persist between app restarts, will have to change that.

check where the funds went from force-close transaction?
ldk tries really hard to not be stuck in prev state so there wont be funds lost from remote node punishing us, so if ldk is unsure it force-closes, and BW uses BIP84 from ldk's seed as a fallback onchain address. literally, you can try importing ldk seed as BIP84 and check if /0/0 path has any funds.

@Darth-Coin
Copy link

@Overtorment thanks for answering.
Unfortunately I think I can't use the seed for a BIP84 recovery.
I used a native segwit BIP32 seed imported in BW from Electrum (where I had some testing funds).
I used that onchain wallet to fund the BW LDK opening channel.
I do not have any option to export a BIP84 seed from BW.
Please advise.

@Overtorment
Copy link
Member

@Overtorment thanks for answering.

Unfortunately I think I can't use the seed for a BIP84 recovery.

I used a native segwit BIP32 seed imported in BW from Electrum (where I had some testing funds).

I used that onchain wallet to fund the BW LDK opening channel.

I do not have any option to export a BIP84 seed from BW.

Please advise.

Can you just open ldk wallet in BW, go into details and press "export" button? There should be a mnemonic seed

@Darth-Coin
Copy link

Darth-Coin commented Aug 6, 2023

OK I see that seed now.
I tried in Electrum - no txs, no funds recovered.
I import it into Sparrow - no txs, no funds.
I imported into BW as BIP84 m/84/0/0 - no txs, no recovered funds

@Overtorment
Copy link
Member

weird. ok can you trace where the coins actually went in close transaction?

@stevenroose
Copy link
Author

I also never saw the funds back. But this has been months ago and I actually never digged into it.

These were my funding txs:

Both were swept within a week after creating the channel.

The sweeps seem "Revoked Lightning Force Close" as per mempool.

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

3 participants