Modity addCachePathsForSectorSize func to support 2KiB sector size devnet locally also
This commit is contained in:
parent
4c1968f62a
commit
837aba777f
@ -91,9 +91,15 @@ func (m *Manager) CheckProvable(ctx context.Context, spt abi.RegisteredSealProof
|
|||||||
|
|
||||||
func addCachePathsForSectorSize(chk map[string]int64, cacheDir string, ssize abi.SectorSize) {
|
func addCachePathsForSectorSize(chk map[string]int64, cacheDir string, ssize abi.SectorSize) {
|
||||||
switch ssize {
|
switch ssize {
|
||||||
|
case 2 << 10:
|
||||||
|
fallthrough
|
||||||
|
case 8 << 20:
|
||||||
|
fallthrough
|
||||||
case 512 << 20:
|
case 512 << 20:
|
||||||
chk[filepath.Join(cacheDir, "sc-02-data-tree-r-last.dat")] = 0
|
chk[filepath.Join(cacheDir, "sc-02-data-tree-r-last.dat")] = 0
|
||||||
case 32 << 30:
|
case 32 << 30:
|
||||||
|
fallthrough
|
||||||
|
case 64 << 30:
|
||||||
for i := 0; i < 8; i++ {
|
for i := 0; i < 8; i++ {
|
||||||
chk[filepath.Join(cacheDir, fmt.Sprintf("sc-02-data-tree-r-last-%d.dat", i))] = 0
|
chk[filepath.Join(cacheDir, fmt.Sprintf("sc-02-data-tree-r-last-%d.dat", i))] = 0
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user