From e9ab23356612293b24d27be1d9f9a04f62a4f874 Mon Sep 17 00:00:00 2001 From: Whyrusleeping Date: Fri, 6 Dec 2019 01:19:17 -0800 Subject: [PATCH] Update cmd/lotus-seed/seed/seed.go --- cmd/lotus-seed/seed/seed.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/lotus-seed/seed/seed.go b/cmd/lotus-seed/seed/seed.go index 678851636..c4fa580bf 100644 --- a/cmd/lotus-seed/seed/seed.go +++ b/cmd/lotus-seed/seed/seed.go @@ -139,7 +139,7 @@ func WriteGenesisMiner(maddr address.Address, sbroot string, gm *genesis.Genesis func createDeals(m *genesis.GenesisMiner, k *wallet.Key, maddr address.Address, ssize uint64) error { for _, sector := range m.Sectors { pref := make([]byte, len(sector.CommD)) - copt(pref, sector.CommD) + copy(pref, sector.CommD[:]) proposal := &actors.StorageDealProposal{ PieceRef: pref, // just one deal so this == CommP PieceSize: sectorbuilder.UserBytesForSectorSize(ssize),