genesis: Set ssize in VerifyDealsOnSectorProveCommitParams

This commit is contained in:
Łukasz Magiera 2020-04-11 01:26:05 +02:00
parent a2554952d1
commit 704978a6ba
2 changed files with 2 additions and 1 deletions

View File

@ -159,6 +159,7 @@ func SetupStorageMiners(ctx context.Context, cs *store.ChainStore, sroot cid.Cid
{
params := &market.VerifyDealsOnSectorProveCommitParams{
DealIDs: []abi.DealID{dealIDs[pi]},
SectorSize: m.SectorSize,
SectorExpiry: preseal.Deal.EndEpoch,
}

View File

@ -31,7 +31,7 @@ func PreSeal(ssize abi.SectorSize, maddr address.Address, sectors int) (*genesis
Sectors: make([]*genesis.PreSeal, sectors),
}
_, st, err := ffiwrapper.SealProofTypeFromSectorSize(ssize)
st, err := ffiwrapper.SealProofTypeFromSectorSize(ssize)
if err != nil {
return nil, nil, err
}