mirror of
https://github.com/lightningnetwork/lnd.git
synced 2026-08-16 13:00:19 +02:00
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. |
||
|---|---|---|
| .. | ||
| backup.go | ||
| backup_test.go | ||
| backupfile.go | ||
| backupfile_test.go | ||
| crypto.go | ||
| crypto_test.go | ||
| log.go | ||
| multi.go | ||
| multi_test.go | ||
| pubsub.go | ||
| pubsub_test.go | ||
| recover.go | ||
| recover_test.go | ||
| single.go | ||
| single_test.go | ||