seed: get default sector size from build.SectorSizes
This commit is contained in:
parent
8fae155cf6
commit
b75767e678
@ -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,
|
||||
})
|
||||
|
||||
|
@ -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{
|
||||
|
Loading…
Reference in New Issue
Block a user