spesmilo / electrum

Electrum Bitcoin Wallet
https://electrum.org
MIT License
7.45k stars 3.09k forks source link

cannot sweep coins from channel after local-force-close using imported channel backup #8516

Closed Fuccthisandfuccu closed 1 year ago

Fuccthisandfuccu commented 1 year ago

Need assistance with getting some bitcoin that I cannot access. I’ve tried Reddit and bitcoin talk and was directed here…..I Cluelessly Opened Electrum Lightning trampoline channel using Android phone, immediately force closed channel and all funds went to address that’s not in my electrum wallet. All Transaction info is on blockchain and mempool, including the address where the funds are currently. Started with Android phone, tried restoring seed with Mac, Chromebook and another Android but still no funds. I can open a watch only wallet with the address that has my funds but it’s literally watch only. Huge tease. I just wanna get my money outta this crypto bs and back into my hands. Any help or suggestions would be much appreciated. Thanks

First Tx ID b9c5453afbee63cb907e506582c25fadd5f3b3bffdd6c38154cc00860d79bd65

Second Tx ID d4fb83192a967463699a8016557a1d4627b1595998c91cadc5c5da0d5371dba7

ecdsa commented 1 year ago

The information needed to sweep funds from a channel is not derived from your seed. Therefore, it will not work to simply restore from seed on another device. Do you still have the original wallet, that you used to create the channel? If you open that wallet, it should sweep the funds.

Fuccthisandfuccu commented 1 year ago

I don’t know how I would have lost it unless it goes bye bye when you sign in/restore on another device.

Fuccthisandfuccu commented 1 year ago

I’ve had the same wallet with the same addresses the whole time. I’ve checked the same wallet every day for over a month, it’s never swept anything and there’s been a big fat donut in every single category. I wish I could just open up a wallet file and it gets to sweepin then I wouldn’t have to be on here buggin you guys. Look I’m not an idiot, well ya I’m an idiot but I’m not a tard, I’ve checked every frickin file on every device I’ve used and there’s no special wallet file that sweeps

Fuccthisandfuccu commented 1 year ago

So how do u sweep funds from a force closed channel?

ecdsa commented 1 year ago

normally it should be swept automatically. can you post a screenshot of the channel details?

Fuccthisandfuccu commented 1 year ago

Screenshot_20230707-135126

ecdsa commented 1 year ago

This screenshot shows a channel backup, not an original channel It probably comes from a wallet file that was restored from seed. Do you still have the original wallet file, that you used to open the channel?

Fuccthisandfuccu commented 1 year ago

So I'm supposed to have seperate files of the only wallet I have? Umm what the heck is the point of the precious seed? Thought the seed was one thing u need in case something goes wrong. "Write it down" and "keep it somewhere safe". Its supoose to RESTORE your wallet and funds not completely remove them and all the info about the transaction which they were lost. The thought of saving a seperate file of the wallet that just took my money, was running very slow, was showing an error non final code or some ish on the channels page, and saw my money go to one of the change addresses after a refresh then dissapear after the next refresh without a trace of evidence that it happened, never crossed my mind nor should it have given the fact that I had my precious seed, knew my password plus all the bs i just explained. My only thought was that the android version must be limited and to try with an actual computer. To answer your question, I'm really not sure if the file was saved to my phone or not because its almost impossible to find the effing file without the phone being rooted or whatever bs, but i've sure tried to find that csucker and the whole time thinking even if I found the mothereffer it wouldn't matter, because there were no funds in it and no way to get them, same boat ive been in no matter the lake. what a joke. Its not even that much money its just the point now. I'm in too deep

ecdsa commented 1 year ago

The GUI is supposed display a screen instructing the user to save a backup when they force close a channel. This backup contains information that cannot be recovered from seed, and it is required in order to sweep the funds if the wallet has been lost or deleted. Unfortunately, this screen is missing in the latest android release, due to a developer oversight. We will fix that issue.

From what you are writing, I can only guess that you have deleted the original wallet file. If that is the case, please get in touch with us via email (electrumdev@gmail.com) or by IRC (#electrum on libera.chat).

accumulator commented 1 year ago

Note: the kivy (and now qml) client suggest to save a Channel backup, while the desktop client suggests to save a Wallet backup at local force close. From the screenshot it looks like a Channel backup was indeed saved (and imported in the wallet in the screenshot), as was instructed at channel opening.

ecdsa commented 1 year ago

indeed, the screenshot suggests that a backup was imported; on-chain backups have a shortened remote node ID. @Fuccthisandfuccu could you please post a screenshot of your list of channels? (using the same wallet, of course)

Fuccthisandfuccu commented 1 year ago

There is no list of channels, it's empty. And get this, I can only import and view the channel backup when I'm offline (red dot) then disappears when I get back online (green dot). When I try to import the channel backup when online, it'll appear for a split second then go away in the channels tab. Huh?

Fuccthisandfuccu commented 1 year ago

Screenshot_20230709-122821 This is the address with my money. What wallet does it belong to? And who owns that wallet??

Fuccthisandfuccu commented 1 year ago

Screenshot_20230709-124440 Also, found this on my phone. The address is the change address where the funds were sent first then disappeared. Wish I woulda snapped a photo of the tx ID instead but I didn't. The address is still in my wallet and shows zero activity, same for Blockchain.

ecdsa commented 1 year ago

There is no list of channels, it's empty. And get this, I can only import and view the channel backup when I'm offline (red dot) then disappears when I get back online (green dot). When I try to import the channel backup when online, it'll appear for a split second then go away in the channels tab. Huh?

Wonderful to tell us that you have been importing a channel backup. It is the kind of information that is relevant. Perhaps you could also tell us how that backup was created?

The issue seems to be a bug in the channel state: the wallet incorrectly sees it as REDEEMED (screenshot). This explains why you see it only transiently when online; the GUI hides redeemed channels.

To fix this issue, we need to understand it, and it would be helpful to see a log. You can create a log using the following steps:

Fuccthisandfuccu commented 1 year ago

Electrum Debug Logs.pdf

ecdsa commented 1 year ago

Thank you for the log. Unfortunately, we cannot see why it fails, because you were offline while you imported the channel backup. Can you send us a log of a session where you import the backup while being online? (note: do not reuse that wallet file; restore from seed first, to make sure that it is the first time you import the backup in that wallet)

Fuccthisandfuccu commented 1 year ago

Like I mentioned before, I cannot import the channel backup online. When I do, nothing shows up in the channels tab. I guess I'll try it anyways and send the logs. There goes another day cuz i won't get a response until tomorrow. Must be the 9h difference? Still, it would be nice to have an actual back n forth conversation and get this done today. Its 9am

ecdsa commented 1 year ago

the backup does not show up in the tab because Electrum incorrectly classifies it as redeemed. this is precisely the condition for which a log would be interesting.

note: if you want things to go faster, you can also email us your master public key, but that implies a loss of privacy.

Fuccthisandfuccu commented 1 year ago

electrum logs.pdf Here's the log. I also sent it via email, along with the channel backup and master public key. I do appreciate the help, thank you.

ecdsa commented 1 year ago

thanks. I will have a look tomorrow

SomberNight commented 1 year ago

Thx for the xpub and channel backup. We have found the bug in the code, and will try to fix it soon. The issue is with the channel backups. For now, we have used the wallet file created from your xpub to broadcast the sweeping tx for you: https://blockstream.info/tx/1da673c50dee77e40376d6ad7e08ab344c5e8b6f660b5a7a744b5903cd9f0519