Skip to content

Commit

Permalink
[Describe]: when excute cmd "lotus-bench sealing" without "benchmark-…
Browse files Browse the repository at this point in the history
…existing-sectorbuilder", panic will occur

[BugFix]:

[FeatureAdd]:

[CodeReview]:

[ModifyDesc]:

[Author]:

[BugID]:
  • Loading branch information
xgswust committed Feb 23, 2022
1 parent 5d416de commit e2cbad6
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 e2cbad6

Please sign in to comment.