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{
|
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,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -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{
|
||||||
|
Loading…
Reference in New Issue
Block a user