Open Crypt-iQ opened 1 year ago
Write doesn't sync to disk so a crash can corrupt data. One example of this is here: https://github.com/lightninglabs/neutrino/blob/4bc2c998c726f6438017769da5222cbe1c88ca92/headerfs/file.go#L19-L25
Write
I forget if there are other call-sites
Nice. We would just add, file.Sync() for the appendRaw method in headerStore, CFheader store, filterdb store.
Hey @Crypt-iQ I've submitted a PR for this issue. I'd love to receive any feedback! 🙏
Write
doesn't sync to disk so a crash can corrupt data. One example of this is here: https://github.com/lightninglabs/neutrino/blob/4bc2c998c726f6438017769da5222cbe1c88ca92/headerfs/file.go#L19-L25I forget if there are other call-sites