Skip to content

unconfirmed channels are not included in channel backup when using gRPC #3816

@rbrooklyn

Description

@rbrooklyn

Background

Unable to recover after a hardware failure

Your environment

  • LND version 0.8.1
  • Linux 5.3.12-1-default Fix name typo in README #1 SMP Thu Nov 21 07:21:43 UTC 2019 (a6f6081) x86_64 x86_64 x86_64 GNU/Linux
  • bitcoin 0.18.1 running on a remote host on the LAN
  • LND was originally installed on another computer which has had a hardware failure.
  • channel.backup file was downloaded from RTL client. However I believe it uses LND's backup files

Steps to reproduce and actual behaviour

Channel opened last night. channel.backup file taken and saved away from computer hosting LND. 24 word seed kept safe. The channel.backup file was taken before the channel was confirmed on-chain, but after I initiated the channel opening process.

At some point overnight, the hardware failed.

Set up LND on my desktop computer. Ran command to restore wallet: ./lncli create --multi_file=channel.backup. Enter in 24 word recovery seed. Allow LND to do its thing.

See the following in the log:

2019-12-10 20:17:35.689 [INF] LNWL: RECOVERY MODE ENABLED -- rescanning for used addresses with recovery_window=2500
2019-12-10 20:17:36.340 [INF] LNWL: Seed birthday surpassed, starting recovery of wallet from height=607115 hash=00000000000000000006de43c6f3ef4761652f2ab4b72e99cacf3958dfd82f95 with recovery-window=2500
2019-12-10 20:18:21.234 [INF] LNWL: Scanning 446 blocks for recoverable addresses
2019-12-10 20:19:55.940 [INF] LNWL: Recovered 1 external addrs at height=607437 hash=00000000000000000006fc1ff25bdefa30bf14f06f768d4f88f3323152f69de6
2019-12-10 20:19:55.940 [INF] LNWL: Found 1 spends from watched outpoints at height=607437 hash=00000000000000000006fc1ff25bdefa30bf14f06f768d4f88f3323152f69de6
2019-12-10 20:20:22.169 [INF] LNWL: Recovered addresses from blocks 607115-607560
2019-12-10 20:20:22.481 [INF] LNWL: Started rescan from block 0000000000000000000fa8e058b44e7b61b613eb961bb5a9a0fbd07df5d4a567 (height 607560) for 1 address
2019-12-10 20:20:23.450 [INF] LNWL: Catching up block hashes to height 607561, this might take a while
2019-12-10 20:20:23.453 [INF] LNWL: Done catching up block hashes
2019-12-10 20:20:23.453 [INF] LNWL: Finished rescan for 1 address (synced to block 00000000000000000008fd994b5f8310177b40c2e8cd3b997ad81e35dab0dd4b, height 607561)
2019-12-10 20:20:24.017 [INF] LTND: Chain backend is fully synced (end_height=607561)!

Which I assume is on-chain scanning. However, it doesn't appear that LND is making any attempt to recover channel balance.

Verifying channel backup gives blank response:

./lncli verifychanbackup --multi_file="channel.backup"

{

}

Asking to manually run the restore again produces no output at all and no response from LND.
./lncli restorechanbackup --multi_file=channel.backup

Are funds safu?

Metadata

Metadata

Assignees

Labels

P2should be fixed if one has timebackupsbugUnintended code behaviourrecoveryRelated to the backup/restoration of LND data (e.g. wallet seeds)

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions