lotus
lotus copied to clipboard
[BUG] GenerateUnsealedCID,more than 32 GB file,return Piece is large then sector
Note: For security-related bugs/issues, please follow the security policy.
Describe the bug i choose a miner who can deal 64GB file.then I send a 33GB file ,louts deal the file. then louts return a error: generation unsealed CID:Piece is large then sector. i expect choose a 64GB miner,and i want to save a 33 Gb file,will be success rather than get a error
Version (run lotus version
):
1.8.0
To Reproduce Steps to reproduce the behavior: 1.choose a miner who can deal 64GB file 2.upload a 33Gb file 3.use louts client deal the file pass by miner,then return a error:: generation unsealed CID:Piece is larger than sector.
Additional context run
lotus client stat QmUwXkVBxSVgznWejUFQstATnyNTNY7qE6XcefH66Vrmoe
Piece Size : 68719476736
Payload Size: 39531554377
i find the in code,i find some code is hard-code the sector type.
- https://github.com/filecoin-project/lotus/blob/v1.9.0/node/impl/client/client.go line 762 function ClientDealPieceCID
dataCIDSize, err := w.Sum()
- https://github.com/filecoin-project/go-commp-utils/blob/master/writer/writer.go hard-code RegisteredSealProof in RegisteredSealProof_StackedDrg32GiBV1_1