bench: Fix after filecoin-ffi switch

This commit is contained in:
Łukasz Magiera 2019-11-27 13:12:42 +01:00
parent 03b1d2329f
commit 4a77fdac4c

View File

@ -9,6 +9,7 @@ import (
"path/filepath" "path/filepath"
"time" "time"
ffi "github.com/filecoin-project/filecoin-ffi"
"github.com/ipfs/go-datastore" "github.com/ipfs/go-datastore"
logging "github.com/ipfs/go-log" logging "github.com/ipfs/go-log"
"github.com/mitchellh/go-homedir" "github.com/mitchellh/go-homedir"
@ -108,7 +109,7 @@ func main() {
size := sectorbuilder.UserBytesForSectorSize(c.Uint64("sector-size")) size := sectorbuilder.UserBytesForSectorSize(c.Uint64("sector-size"))
var sealTimings []SealingResult var sealTimings []SealingResult
var sealedSectors []sectorbuilder.PublicSectorInfo var sealedSectors []ffi.PublicSectorInfo
numSectors := uint64(1) numSectors := uint64(1)
for i := uint64(1); i <= numSectors; i++ { for i := uint64(1); i <= numSectors; i++ {
start := time.Now() start := time.Now()
@ -134,7 +135,7 @@ func main() {
precommit := time.Now() precommit := time.Now()
sealedSectors = append(sealedSectors, sectorbuilder.PublicSectorInfo{ sealedSectors = append(sealedSectors, ffi.PublicSectorInfo{
CommR: pco.CommR, CommR: pco.CommR,
SectorID: i, SectorID: i,
}) })