lnd/chanbackup
Olaoluwa Osuntokun c58be5625d
chanbackup: always close SCB file after reading
In this commit, we fix a bug introduced with the recent bug fix for SCB
state+fail combination. On windwos a rename operation will fail is the
fail one is attempting to rename is still open. Therefore we need to
close the file after we read the contents, to ensure the follow up
rename operations once the channel state changes will succeed. We do
this by using `ioutil.ReadFile`, which will always clsoe the file after
reading.

Fixes #4450.
2020-07-10 16:20:32 -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: always close SCB file after reading 2020-07-10 16:20:32 -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: refuse to start the SubSwapper if we can't read the SCB file 2020-06-17 17:44:57 -07:00
pubsub.go chanbackup: refuse to start the SubSwapper if we can't read the SCB file 2020-06-17 17:44:57 -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