From 5b73b48dc81d21abd055aa566ce1baab055db871 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Wed, 1 Jul 2020 14:04:37 +0200 Subject: [PATCH] Fix tests post actor update --- cmd/lotus-seed/seed/seed.go | 3 ++- storage/mockstorage/preseal.go | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/cmd/lotus-seed/seed/seed.go b/cmd/lotus-seed/seed/seed.go index 08ae91200..1a5d9aa96 100644 --- a/cmd/lotus-seed/seed/seed.go +++ b/cmd/lotus-seed/seed/seed.go @@ -207,12 +207,13 @@ func WriteGenesisMiner(maddr address.Address, sbroot string, gm *genesis.Miner, } func createDeals(m *genesis.Miner, k *wallet.Key, maddr address.Address, ssize abi.SectorSize) error { - for _, sector := range m.Sectors { + for i, sector := range m.Sectors { proposal := &market.DealProposal{ PieceCID: sector.CommD, PieceSize: abi.PaddedPieceSize(ssize), Client: k.Address, Provider: maddr, + Label: fmt.Sprintf("%d", i), StartEpoch: 0, EndEpoch: 9001, StoragePricePerEpoch: big.Zero(), diff --git a/storage/mockstorage/preseal.go b/storage/mockstorage/preseal.go index 740deb6c9..ec5f0e1ca 100644 --- a/storage/mockstorage/preseal.go +++ b/storage/mockstorage/preseal.go @@ -1,6 +1,8 @@ package mockstorage import ( + "fmt" + "github.com/filecoin-project/go-address" commcid "github.com/filecoin-project/go-fil-commcid" "github.com/filecoin-project/sector-storage/mock" @@ -50,6 +52,7 @@ func PreSeal(ssize abi.SectorSize, maddr address.Address, sectors int) (*genesis PieceSize: abi.PaddedPieceSize(ssize), Client: maddr, Provider: maddr, + Label: fmt.Sprintf("%d", i), StartEpoch: 1, EndEpoch: 10000, StoragePricePerEpoch: big.Zero(),