Get things to mostly build

This commit is contained in:
Łukasz Magiera
2020-04-10 23:29:05 +02:00
parent e053cd6b9c
commit d3ffe48fcb
7 changed files with 30 additions and 10 deletions
+1 -1
View File
@@ -242,7 +242,7 @@ var runCmd = &cli.Command{
}
// Setup remote sector store
_, spt, err := ffiwrapper.SealProofTypeFromSectorSize(ssize)
spt, err := ffiwrapper.SealProofTypeFromSectorSize(ssize)
if err != nil {
return xerrors.Errorf("getting proof type: %w", err)
}
+7 -3
View File
@@ -421,7 +421,12 @@ func storageMinerInit(ctx context.Context, cctx *cli.Context, api lapi.FullNode,
return err
}
ppt, spt, err := ffiwrapper.SealProofTypeFromSectorSize(ssize)
spt, err := ffiwrapper.SealProofTypeFromSectorSize(ssize)
if err != nil {
return err
}
winPt, err := spt.RegisteredWinningPoStProof()
if err != nil {
return err
}
@@ -438,12 +443,11 @@ func storageMinerInit(ctx context.Context, cctx *cli.Context, api lapi.FullNode,
smgr, err := sectorstorage.New(ctx, lr, stores.NewIndex(), &ffiwrapper.Config{
SealProofType: spt,
PoStProofType: ppt,
}, sectorstorage.SealerConfig{true, true, true}, nil, sa)
if err != nil {
return err
}
epp := storage.NewElectionPoStProver(smgr, dtypes.MinerID(mid))
epp := storage.NewElectionPoStProver(smgr, dtypes.MinerID(mid), winPt)
beacon := beacon.NewMockBeacon(build.BlockDelay * time.Second)