-
Notifications
You must be signed in to change notification settings - Fork 35
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
Feature Request: Force close from previous state #149
Comments
I've hacked this together #150 quite quickly (haven't had time to properly test it yet). Will continue later today, but if you're adventurous, you can already give it a try. |
Maybe don't use the |
Awesome, thank you. I'll play around with this today in a local regtest environment and report back any findings or questions. To your knowledge, is there any risk of a node broadcasting a justice transaction against its own force close? Worst case scenario is I accidentally sweep funds to the side of the channel I don't have control of. |
Cool. I hope the close TX that you need is still around in the new revocation database format... Just in case, don't update the running node to a new version just yet. You said the node was fully deleted, right? So nothing running of it anymore? The only risk is if you used a watchtower with the deleted node. Then the watchtower will sweep the funds to an address controlled by the deleted node... |
Tested this locally on a regtest network (via Polar): Command
Output:
(I also tried a few other indexes with the same corresponding results) Are there any usage issues you see? Or troubleshooting tips? |
Hmm, that's what I was afraid of. A couple of versions ago (~ lnd 0.15) there was a database migration that freed up a lot of space from the channel state. I think those commitment transactions were part of that. Because for issuing retribution if your peer breaches, we don't need the full commitment TX, just the TXID and some keys. So I think that's why the data was removed... Did you ever run with |
The test I ran above was on a newly created regtest node running locally with version Before doing so, I just want to confirm that no transaction (or any other effect) will be broadcast without the |
Correct, as long as you don't specify the |
This isn't possible with the way commitment updates are stored in the channel DB currently... |
Thanks for looking into this @guggero |
I have a node that was deleted without a backup and without a seed phrase. There's one channel on that node that I have control of the peer. What I'd like to do is broadcast a previous commitment transaction from the active node. However, the
forceclose
command only lets you broadcast the current state.Whether by adding an index param to the
forceclose
command or by some other method, is there a way of broadcasting a previous commit state from an LND node?The text was updated successfully, but these errors were encountered: