Merge pull request #8173 from xgswust/lotus-bench-fix

[Describe]: when excute cmd "lotus-bench sealing" without "benchmark-…
This commit is contained in:
ZenGround0 2022-02-23 09:07:57 -07:00 committed by GitHub
commit ba65d1e1e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -276,6 +276,13 @@ var sealBenchCmd = &cli.Command{
if err != nil {
return xerrors.Errorf("failed to run seals: %w", err)
}
for _, s := range extendedSealedSectors {
sealedSectors = append(sealedSectors, proof.SectorInfo{
SealedCID: s.SealedCID,
SectorNumber: s.SectorNumber,
SealProof: s.SealProof,
})
}
} else {
// TODO: implement sbfs.List() and use that for all cases (preexisting sectorbuilder or not)