Merge pull request #8179 from filecoin-project/asr/comm-p-fix

fix: client: calculate commps for pieces bigger than 32GB
This commit is contained in:
Aayush Rajasekaran 2022-02-24 11:56:12 -05:00 committed by GitHub
commit c940727cb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1272,7 +1272,7 @@ func (a *API) ClientCalcCommP(ctx context.Context, inpath string) (*api.CommPRet
//
// IF/WHEN this changes in the future we will have to be able to calculate
// "old style" commP, and thus will need to introduce a version switch or similar
arbitraryProofType := abi.RegisteredSealProof_StackedDrg32GiBV1_1
arbitraryProofType := abi.RegisteredSealProof_StackedDrg64GiBV1_1
rdr, err := os.Open(inpath)
if err != nil {