Open AleAndForCode opened 2 months ago
Did you abort the recovery process at some point (e.g. restart lnd
) while it was still scanning the chain? That unfortunately will stop the recovery and then it won't continue on the next startup (it's a known issue, see https://github.com/lightningnetwork/lnd/issues/7111).
Background
I was testing lnd recovery by attempting to recover a recently created testnet wallet with a non-zero balance. I followed the on-chain recovery instructions. After executing the recovery process, the recovery status showed as complete:
However, the recovered wallet balance was zero.
Additionally, when generating a new address with lncli newaddress p2wkh, it produced the same address as before the restore. In my case, the address
tb1qaa898gjprr5uh002kyqtnmpj02ur4vvw4v3ujh
still has a balance, as confirmed by the testnet explorer here.I also tried rebooting lnd and unlocking with a doubled recovery window, as well as launching lnd with the --reset-wallet-transactions flag. None of these steps resolved the issue. Please see the provided logs and screenshots for more details.
Logs contain a lot of such error messages:
fail_to_recover fail_to_recover_by_unlock logs.zip
Environment
Steps to reproduce
Start the lnd service. Follow the on-chain recovery instructions. Use lncli to create a seed and passphrase from an existing, recently created lnd wallet with a non-zero on-chain balance. Set the recovery window to the default value. Wait until lncli getrecoveryinfo shows recovery_finished = true. Check the wallet balance with lncli walletbalance.
Expected behaviour
The wallet should show the restored on-chain balance after recovery.
Actual behaviour
The recovered wallet balance is zero: