package sectorbuilder import ( "path/filepath" "github.com/filecoin-project/lotus/chain/address" "github.com/filecoin-project/lotus/node/modules/dtypes" ) func TempSectorbuilderDir(dir string, sectorSize uint64, ds dtypes.MetadataDS) (*SectorBuilder, error) { addr, err := address.NewFromString("t3vfxagwiegrywptkbmyohqqbfzd7xzbryjydmxso4hfhgsnv6apddyihltsbiikjf3lm7x2myiaxhuc77capq") if err != nil { return nil, err } unsealed := filepath.Join(dir, "unsealed") sealed := filepath.Join(dir, "sealed") staging := filepath.Join(dir, "staging") cache := filepath.Join(dir, "cache") sb, err := New(&Config{ SectorSize: sectorSize, SealedDir: sealed, StagedDir: staging, UnsealedDir: unsealed, CacheDir: cache, WorkerThreads: 2, Miner: addr, }, ds) if err != nil { return nil, err } return sb, nil }