From b75767e67841cf1fd2df2bc4f229d4d82bb86eac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Thu, 28 Nov 2019 11:55:34 +0100 Subject: [PATCH] seed: get default sector size from build.SectorSizes --- chain/gen/utils.go | 2 +- cmd/lotus-seed/main.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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{