filecoin-project / filecoin-project/dagstore

upgrader: record checksum for integrity checks

Open
#25 2 comments 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.