cmd/lncli: add new exportchanbackup and restorechanbackup cli commands

In this commit, we add two new cli commands: exportchanbackup and
restorechanbackup. These two commands allow users to export backups
(single or multi) for one or all channels, and also restore these
backups (single or multi) from a file to attempt to recover the
channels.

Additionally, we extend the `lncli create` call to also accept these
backups so users can have a single command to restore both their
on-chain and off-chain funds.
This commit is contained in:
Olaoluwa Osuntokun committed 2019-03-28 17:53:29 -07:00
1 parent 1d7e42af0a
commit 0b8131c3be
2 files changed
+377 -15

No files matched your search

+2
View File
@@ -295,6 +295,8 @@ func main() {
feeReportCommand,
updateChannelPolicyCommand,
forwardingHistoryCommand,
exportChanBackupCommand,
restoreChanBackupCommand,
}
// Add any extra autopilot commands determined by build flags.