Cleanup build package

This commit is contained in:
Łukasz Magiera
2020-05-12 19:59:28 +02:00
parent e8d92a5f31
commit ba389598ee
13 changed files with 85 additions and 56 deletions
+4 -3
View File
@@ -20,16 +20,17 @@ import (
"github.com/filecoin-project/go-address"
paramfetch "github.com/filecoin-project/go-paramfetch"
"github.com/filecoin-project/sector-storage/ffiwrapper"
"github.com/filecoin-project/sector-storage/ffiwrapper/basicfs"
"github.com/filecoin-project/sector-storage/stores"
"github.com/filecoin-project/specs-actors/actors/abi"
"github.com/filecoin-project/specs-actors/actors/builtin/miner"
"github.com/filecoin-project/specs-storage/storage"
lapi "github.com/filecoin-project/lotus/api"
"github.com/filecoin-project/lotus/build"
"github.com/filecoin-project/lotus/chain/types"
"github.com/filecoin-project/lotus/genesis"
"github.com/filecoin-project/sector-storage/ffiwrapper"
"github.com/filecoin-project/sector-storage/ffiwrapper/basicfs"
)
var log = logging.Logger("lotus-bench")
@@ -72,7 +73,7 @@ func main() {
log.Info("Starting lotus-bench")
build.SectorSizes = append(build.SectorSizes, 2048)
miner.SupportedProofTypes[abi.RegisteredProof_StackedDRG2KiBSeal] = struct{}{}
app := &cli.App{
Name: "lotus-bench",
+1 -1
View File
@@ -79,7 +79,7 @@ var initCmd = &cli.Command{
&cli.StringFlag{
Name: "sector-size",
Usage: "specify sector size to use",
Value: fmt.Sprint(build.SectorSizes[0]),
Value: fmt.Sprint(build.DefaultSectorSize()),
},
&cli.StringSliceFlag{
Name: "pre-sealed-sectors",