lnd.xprv/chanbackup
Olaoluwa Osuntokun fc65c9b2cc
chanbackup: always combine new backup data w/ on-disk state
In this commit, we fix a bug that could possibly cause a user's on disk
back up file to be wiped out, if they ever started _another_ lnd node
with different channel state. To remedy this, before we swap out the
channel state with what's on disk, we'll first read out the contents of
the on-disk SCB file and _combine_ that with what we have in memory.

Fixes #4377
2020-06-17 17:44:52 -07: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 SCB support for new anchor commitments 2020-03-16 17:07:03 -07: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: close temp SCB file before rename 2019-05-27 15:36:55 -07: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: add new NilMultiSizePacked constant 2019-03-28 17:53:37 -07:00
pubsub_test.go chanbackup: always combine new backup data w/ on-disk state 2020-06-17 17:44:52 -07:00
pubsub.go chanbackup: always combine new backup data w/ on-disk state 2020-06-17 17:44:52 -07: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: continue recovery if channel already exists 2019-11-18 10:51:23 +01:00
single_test.go chanbackup: add SCB support for new anchor commitments 2020-03-16 17:07:03 -07:00
single.go chanbackup: add SCB support for new anchor commitments 2020-03-16 17:07:03 -07:00