From 704978a6ba4804412d539d452416c60bb3a5d2c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Sat, 11 Apr 2020 01:26:05 +0200 Subject: [PATCH] genesis: Set ssize in VerifyDealsOnSectorProveCommitParams --- chain/gen/genesis/miners.go | 1 + storage/mockstorage/preseal.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/chain/gen/genesis/miners.go b/chain/gen/genesis/miners.go index 01d962a8f..8ca3a0423 100644 --- a/chain/gen/genesis/miners.go +++ b/chain/gen/genesis/miners.go @@ -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, } diff --git a/storage/mockstorage/preseal.go b/storage/mockstorage/preseal.go index 1a2c01e8b..740deb6c9 100644 --- a/storage/mockstorage/preseal.go +++ b/storage/mockstorage/preseal.go @@ -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 }