From 86ccaa19814db9f8c9b3f8767075b6ea1fcaf70d Mon Sep 17 00:00:00 2001 From: Jeromy Date: Wed, 22 Apr 2020 13:01:09 -0700 Subject: [PATCH] properly load in registered proof type when benchmarking existing sectors --- cmd/lotus-bench/main.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cmd/lotus-bench/main.go b/cmd/lotus-bench/main.go index 781331004..41e125cb0 100644 --- a/cmd/lotus-bench/main.go +++ b/cmd/lotus-bench/main.go @@ -238,6 +238,8 @@ var sealBenchCmd = &cli.Command{ rand.Read(challenge[:]) if robench != "" { + // TODO: implement sbfs.List() and use that for all cases (preexisting sectorbuilder or not) + // TODO: this assumes we only ever benchmark a preseal // sectorbuilder directory... we need a better way to handle // this in other cases @@ -259,8 +261,9 @@ var sealBenchCmd = &cli.Command{ for _, s := range genm.Sectors { sealedSectors = append(sealedSectors, abi.SectorInfo{ - SealedCID: s.CommR, - SectorNumber: s.SectorID, + SealedCID: s.CommR, + SectorNumber: s.SectorID, + RegisteredProof: s.ProofType, }) } }