seed: get default sector size from build.SectorSizes

This commit is contained in:
Łukasz Magiera 2019-11-28 11:55:34 +01:00
parent 8fae155cf6
commit b75767e678
2 changed files with 2 additions and 2 deletions

View File

@ -246,7 +246,7 @@ func SetupStorageMiners(ctx context.Context, cs *store.ChainStore, sroot cid.Cid
params := mustEnc(&actors.CreateStorageMinerParams{ params := mustEnc(&actors.CreateStorageMinerParams{
Owner: owner, Owner: owner,
Worker: worker, Worker: worker,
SectorSize: 1024, // TODO: needs to come from preseals info SectorSize: build.SectorSizes[0], // TODO: needs to come from preseals info
PeerID: pid, PeerID: pid,
}) })

View File

@ -53,7 +53,7 @@ var preSealCmd = &cli.Command{
}, },
&cli.Uint64Flag{ &cli.Uint64Flag{
Name: "sector-size", Name: "sector-size",
Value: 1024, Value: build.SectorSizes[0],
Usage: "specify size of sectors to pre-seal", Usage: "specify size of sectors to pre-seal",
}, },
&cli.StringFlag{ &cli.StringFlag{