Skip to content

Commit

Permalink
Merge pull request #8173 from xgswust/lotus-bench-fix
Browse files Browse the repository at this point in the history
[Describe]: when excute cmd "lotus-bench sealing" without "benchmark-…
  • Loading branch information
ZenGround0 authored Feb 23, 2022
2 parents 5d416de + e2cbad6 commit ba65d1e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cmd/lotus-bench/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit ba65d1e

Please sign in to comment.