properly load in registered proof type when benchmarking existing sectors

This commit is contained in:
Jeromy 2020-04-22 13:01:09 -07:00 committed by Łukasz Magiera
parent a9b62bcc5c
commit 86ccaa1981

View File

@ -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,
})
}
}