legacy syscalls: Cleanup ComputeUnsealedSectorCID
This commit is contained in:
parent
3f93b86ebe
commit
bf36ca93bb
@ -70,11 +70,6 @@ type syscallShim struct {
|
||||
}
|
||||
|
||||
func (ss *syscallShim) ComputeUnsealedSectorCID(st abi.RegisteredSealProof, pieces []abi.PieceInfo) (cid.Cid, error) {
|
||||
var sum abi.PaddedPieceSize
|
||||
for _, p := range pieces {
|
||||
sum += p.Size
|
||||
}
|
||||
|
||||
commd, err := ffiwrapper.GenerateUnsealedCID(st, pieces)
|
||||
if err != nil {
|
||||
log.Errorf("generate data commitment failed: %s", err)
|
||||
|
Loading…
Reference in New Issue
Block a user