Closed holzeis closed 1 year ago
This issue is reproducible with the following steps
Funds appear in my on-chain wallet
Funds are gone
This might be related to #498
Try this project to recover the funds. It currently only accepts a seed file but it shouldn't take much to change it to accept a seed phrase: https://github.com/get10101/10101-recovery
The critical part of this ticket is that the money ends in a p2wsh
script and not in your wallet, hence, you cannot recover your funds in a a different wallet. You will need to know how to spend said script.
The corresponding event which is being fired by LDK is Event::SpendableOutputs
.
@luckysori : afaik you looked into how we can change that the money should end up in the user's wallet directly instead of in an p2wsh
script?
This issue is reproducible with the following steps
1. Fund wallet 2. Open a position 3. Close channel collaboratively (on the settings screen)
Expected Result
Funds appear in my on-chain wallet
Observed Result
Funds are gone
This might be related to #498
Collaboratively closing the ln channel with an open dlc channel was incorrect in itself. ln does not know about the dlc channel and hence is not able to broadcast the required split and glue transactions correctly ending up in loosing the channels funds.
The correct way this should be done collaboratively is to first close the dlc channel and afterwards close the ln channel. I am going to setup a test for that to see if that is working.
We might want to close the ticket then. However, what should work is to force close the ln channel regardless if a dlc channel exists or not. This is because it might be triggered by the other side, or automatically through ldk. But given the history on this ticket, I guess its better to open a separate ticket for that then.
Removing the critical flag as the position needs to be collaboratively closed before closing the channel.
After ending up in a stuck state on my 10101 app (mainnet) Build 1.0.12 (985) I initiated a collaborative channel close through the coordinator api.
Both sides reported a successful channel closure and the commit transaction has been published https://mempool.space/tx/b5b3efb670887bf0dfa30f708835e5c3555796231d392da28dfe5a82cd4bc574 and confirmed.
Logs from the app
The funds returned to the the coordinator but not to my app. I also recovered the seed in BlueWallet and Green, but neither wallet shows me a balance.
The funds will not end in the user's wallet because they are locked in a
p2wsh
script which is meant to be spent manually. LDK fires the eventEvent::SpendableOutputs
for us when it's ready to be spent.