2020-12-27 00:10:02 +00:00
|
|
|
## chantools fixoldbackup
|
|
|
|
|
|
|
|
Fixes an old channel.backup file that is affected by the lnd issue #3881 (unable to derive shachain root key)
|
|
|
|
|
2020-12-27 00:40:51 +00:00
|
|
|
### Synopsis
|
|
|
|
|
|
|
|
Fixes an old channel.backup file that is affected by the
|
|
|
|
lnd issue [#3881](https://github.com/lightningnetwork/lnd/issues/3881)
|
|
|
|
(<code>[lncli] unable to restore chan backups: rpc error: code = Unknown desc =
|
|
|
|
unable to unpack chan backup: unable to derive shachain root key: unable to
|
|
|
|
derive private key</code>).
|
|
|
|
|
2020-12-27 00:10:02 +00:00
|
|
|
```
|
|
|
|
chantools fixoldbackup [flags]
|
|
|
|
```
|
|
|
|
|
2020-12-27 00:40:51 +00:00
|
|
|
### Examples
|
|
|
|
|
|
|
|
```
|
|
|
|
chantools fixoldbackup --rootkey xprvxxxxxxxxxx \
|
|
|
|
--multi_file ~/.lnd/data/chain/bitcoin/mainnet/channel.backup
|
|
|
|
```
|
|
|
|
|
2020-12-27 00:10:02 +00:00
|
|
|
### Options
|
|
|
|
|
|
|
|
```
|
|
|
|
--bip39 read a classic BIP39 seed and passphrase from the terminal instead of asking for lnd seed format or providing the --rootkey flag
|
|
|
|
-h, --help help for fixoldbackup
|
|
|
|
--multi_file string lnd channel.backup file to fix
|
|
|
|
--rootkey string BIP32 HD root key of the wallet to use for decrypting the backup; leave empty to prompt for lnd 24 word aezeed
|
|
|
|
```
|
|
|
|
|
|
|
|
### Options inherited from parent commands
|
|
|
|
|
|
|
|
```
|
|
|
|
-r, --regtest Indicates if regtest parameters should be used
|
|
|
|
-t, --testnet Indicates if testnet parameters should be used
|
|
|
|
```
|
|
|
|
|
|
|
|
### SEE ALSO
|
|
|
|
|
|
|
|
* [chantools](chantools.md) - Chantools helps recover funds from lightning channels
|
|
|
|
|