Update cmd/lotus-seed/seed/seed.go

This commit is contained in:
Whyrusleeping 2019-12-06 01:19:17 -08:00 committed by GitHub
parent 2a8dd6dd46
commit e9ab233566
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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),