diff --git a/chain/gen/utils.go b/chain/gen/utils.go index 773ef83ab..aaf31c09a 100644 --- a/chain/gen/utils.go +++ b/chain/gen/utils.go @@ -246,7 +246,7 @@ func SetupStorageMiners(ctx context.Context, cs *store.ChainStore, sroot cid.Cid params := mustEnc(&actors.CreateStorageMinerParams{ Owner: owner, Worker: worker, - SectorSize: 1024, // TODO: needs to come from preseals info + SectorSize: build.SectorSizes[0], // TODO: needs to come from preseals info PeerID: pid, }) diff --git a/cmd/lotus-seed/main.go b/cmd/lotus-seed/main.go index f17e11bf3..603a346b4 100644 --- a/cmd/lotus-seed/main.go +++ b/cmd/lotus-seed/main.go @@ -53,7 +53,7 @@ var preSealCmd = &cli.Command{ }, &cli.Uint64Flag{ Name: "sector-size", - Value: 1024, + Value: build.SectorSizes[0], Usage: "specify size of sectors to pre-seal", }, &cli.StringFlag{