Write doesn't sync to disk so a crash can corrupt data. One example of this is here:
|
func (h *headerStore) appendRaw(header []byte) error { |
|
if _, err := h.file.Write(header); err != nil { |
|
return err |
|
} |
|
|
|
return nil |
|
} |
I forget if there are other call-sites
Writedoesn't sync to disk so a crash can corrupt data. One example of this is here:neutrino/headerfs/file.go
Lines 19 to 25 in 4bc2c99
I forget if there are other call-sites