lnd/chanbackup
Olaoluwa Osuntokun 3b370fa08d
chanbackup: add new sub-system for keeping the on disk channels.backup up to date
In this commit, we introduce the chanbackup.SubSwapper interface. It
takes a regular Swapper implementation (defined by the
chanbackup.SubSwapper) interface along with a chanbackup.ChannelNotifier
implementation. Given these two interfaces, we're able to be notified
when a new channel is opened or closed, and then use the Swapper to
atomically replace the on-disk channel back up. As a result, a Lightning
daemon can ensure that they alwayts have a up to date channels.backup on
disk that can safely be copied away by users and be used to restore
channel funds in the event of partial/total data loss.
2019-01-23 18:11:33 -08:00
..
backup_test.go chanbackup: add functionality to allow external callers to backup channels 2019-01-23 18:11:28 -08:00
backup.go chanbackup: add functionality to allow external callers to backup channels 2019-01-23 18:11:28 -08:00
backupfile_test.go chanbackup: add new MultiFile struct for storing+updating Multis on disk 2019-01-23 18:11:31 -08:00
backupfile.go chanbackup: add new MultiFile struct for storing+updating Multis on disk 2019-01-23 18:11:31 -08:00
crypto_test.go chanbackup: implement crypto operations for serialized static channel baackups 2019-01-23 18:11:21 -08:00
crypto.go chanbackup: implement crypto operations for serialized static channel baackups 2019-01-23 18:11:21 -08:00
log.go chanbackup: add logger 2019-01-23 18:11:25 -08:00
multi_test.go chanbackup: introduce Multi, a multi-channel backup 2019-01-23 18:11:27 -08:00
multi.go chanbackup: introduce Multi, a multi-channel backup 2019-01-23 18:11:27 -08:00
pubsub_test.go chanbackup: add new sub-system for keeping the on disk channels.backup up to date 2019-01-23 18:11:33 -08:00
pubsub.go chanbackup: add new sub-system for keeping the on disk channels.backup up to date 2019-01-23 18:11:33 -08:00
recover_test.go chanbackup: add functions to allow recovery of existing channel backups 2019-01-23 18:11:29 -08:00
recover.go chanbackup: add functions to allow recovery of existing channel backups 2019-01-23 18:11:29 -08:00
single_test.go chanbackup: add implementation of Single Channel Backups (SCBs) 2019-01-23 18:11:26 -08:00
single.go chanbackup: add implementation of Single Channel Backups (SCBs) 2019-01-23 18:11:26 -08:00