filecoin-project / filecoin-project/dagstore
upgrader: record checksum for integrity checks
Open
- Dominant language
- Go
- Stars
- 41
- Forks
- 21
- PR merge metrics
- No merged PRs in 30d
Description
For safety, record the checksum of a transient in shard persistence every time the shard goes into `Available` or `Serving` state.
Expose the checksum to the `mount.Upgrader`, so that when the mount needs to be redownloaded, it can perform an integritiy check.
We gotta be careful about recording an invalid checksum though. This can be a footgun if we get it wrong (e.g. recording a bad checksum as good will make future correct downloads error out).
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.