Merge pull request #64 from chunqizhi/wenchu
Modity addCachePathsForSectorSize func to support 2KiB sector size devnet locally also
This commit is contained in:
commit
a445979f1a
@ -91,12 +91,20 @@ func (m *Manager) CheckProvable(ctx context.Context, spt abi.RegisteredSealProof
|
||||
|
||||
func addCachePathsForSectorSize(chk map[string]int64, cacheDir string, ssize abi.SectorSize) {
|
||||
switch ssize {
|
||||
case 2 << 10:
|
||||
fallthrough
|
||||
case 8 << 20:
|
||||
fallthrough
|
||||
case 512 << 20:
|
||||
chk[filepath.Join(cacheDir, "sc-02-data-tree-r-last.dat")] = 0
|
||||
case 32 << 30:
|
||||
for i := 0; i < 8; i++ {
|
||||
chk[filepath.Join(cacheDir, fmt.Sprintf("sc-02-data-tree-r-last-%d.dat", i))] = 0
|
||||
}
|
||||
case 64 << 30:
|
||||
for i := 0; i < 16; i++ {
|
||||
chk[filepath.Join(cacheDir, fmt.Sprintf("sc-02-data-tree-r-last-%d.dat", i))] = 0
|
||||
}
|
||||
default:
|
||||
log.Warnf("not checking cache files of %s sectors for faults", ssize)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user