File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
lightning-data-persister/src Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,16 @@ use std::marker::PhantomData;
16
16
17
17
/// FilesystemPersister can persist channel data on disk on Linux machines, where
18
18
/// each channel's data is stored in a file named after its funding outpoint.
19
+ ///
20
+ /// Warning: this module does the best it can with calls to persist data, but it
21
+ /// can only guarantee that the data is passed to the drive. It is up to the
22
+ /// drive manufacturers to do the actual persistence properly, which they often
23
+ /// don't (especially on consumer-grade hardware). Therefore, it is up to the
24
+ /// user to validate their entire storage stack, to ensure the writes are
25
+ /// persistent.
26
+ /// Corollary: especially when dealing with larger amounts of money, it is best
27
+ /// practice to have multiple channel data backups and not rely only on the
28
+ /// FilesystemPersister.
19
29
pub struct FilesystemPersister < ChanSigner : ChannelKeys + Readable + Writeable > {
20
30
path_to_channel_data : String ,
21
31
phantom : PhantomData < ChanSigner > , // TODO: is there a way around this?
You can’t perform that action at this time.
0 commit comments