-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Recover onchain funds from force-closed channel without SCB? #4960
Comments
If the channel was using static remote key then a remote force close would result in funds being sent on-chain to an output that uses a static key covered by the seed. There would be no delay required to sweep You could check out https://github.com/guggero/chantools for tools for fund recovery from the seed If a legacy channel type was used then you would need the SCB to help you get the cooperation of the remote node to identify the randomizing element in the output key because before static remote key the funds were sent to a dynamic key that requires state beyond the HD seed |
im running an experiment with 1 mBTC channel. now Im restoring client's node from mnemonics and from reading https://github.com/guggero/chantools I had an impression that node should sweep funds from static key automatically but its not happening. what am i doing wrong? i noticed that remote node waited for 144 blocks and sweeped funds back: |
You might want to check out this issue which deals with a similar scenario: #4778 |
So right now we explcitily sweep these funds when we carry out the SCB recovery flow. What we don't yet do (which is mentioned in #4778) is make the wallet aware of those funds. We use a different keyscope/account/family from the default wallet, so even though it has the direct private key for the output on chain, it doesn't yet sweep it itself. |
ok I read #4778 and as far as i understood lnd cant yet sweep those funds but they are safu? |
Correct. |
success! i was able to get a priv key for those coins. |
Nice! |
another question: i noticed that what's the responsibility of other accounts 0-9 ? |
See |
Background
--enable-upfront-shutdown
is it possible for client to recover his coins? as far as I know, after an initial delay for unilateral close (say, 144 blocks) each client has to claim (aka "sweep") his half to his regular onchain wallet. and the key to this intermediate address that has to be sweeped is stored where? only in SCB?
The text was updated successfully, but these errors were encountered: