fix: cachefiles: add SynthPorep layers
This commit is contained in:
parent
6187f6b7ac
commit
864eef3e4c
@ -14,15 +14,15 @@ func LayerFileName(layer int) string {
|
|||||||
|
|
||||||
func SDRLayers(spt abi.RegisteredSealProof) (int, error) {
|
func SDRLayers(spt abi.RegisteredSealProof) (int, error) {
|
||||||
switch spt {
|
switch spt {
|
||||||
case abi.RegisteredSealProof_StackedDrg2KiBV1, abi.RegisteredSealProof_StackedDrg2KiBV1_1:
|
case abi.RegisteredSealProof_StackedDrg2KiBV1, abi.RegisteredSealProof_StackedDrg2KiBV1_1, abi.RegisteredSealProof_StackedDrg2KiBV1_1_Feat_SyntheticPoRep:
|
||||||
return 2, nil
|
return 2, nil
|
||||||
case abi.RegisteredSealProof_StackedDrg8MiBV1, abi.RegisteredSealProof_StackedDrg8MiBV1_1:
|
case abi.RegisteredSealProof_StackedDrg8MiBV1, abi.RegisteredSealProof_StackedDrg8MiBV1_1, abi.RegisteredSealProof_StackedDrg8MiBV1_1_Feat_SyntheticPoRep:
|
||||||
return 2, nil
|
return 2, nil
|
||||||
case abi.RegisteredSealProof_StackedDrg512MiBV1, abi.RegisteredSealProof_StackedDrg512MiBV1_1:
|
case abi.RegisteredSealProof_StackedDrg512MiBV1, abi.RegisteredSealProof_StackedDrg512MiBV1_1, abi.RegisteredSealProof_StackedDrg512MiBV1_1_Feat_SyntheticPoRep:
|
||||||
return 2, nil
|
return 2, nil
|
||||||
case abi.RegisteredSealProof_StackedDrg32GiBV1, abi.RegisteredSealProof_StackedDrg32GiBV1_1:
|
case abi.RegisteredSealProof_StackedDrg32GiBV1, abi.RegisteredSealProof_StackedDrg32GiBV1_1, abi.RegisteredSealProof_StackedDrg32GiBV1_1_Feat_SyntheticPoRep:
|
||||||
return 11, nil
|
return 11, nil
|
||||||
case abi.RegisteredSealProof_StackedDrg64GiBV1, abi.RegisteredSealProof_StackedDrg64GiBV1_1:
|
case abi.RegisteredSealProof_StackedDrg64GiBV1, abi.RegisteredSealProof_StackedDrg64GiBV1_1, abi.RegisteredSealProof_StackedDrg64GiBV1_1_Feat_SyntheticPoRep:
|
||||||
return 11, nil
|
return 11, nil
|
||||||
default:
|
default:
|
||||||
return 0, fmt.Errorf("unsupported proof type: %v", spt)
|
return 0, fmt.Errorf("unsupported proof type: %v", spt)
|
||||||
|
Loading…
Reference in New Issue
Block a user