genesis: Add sectors to NewSectors set

This commit is contained in:
Łukasz Magiera 2020-04-21 14:36:54 +02:00
parent b941b29fe5
commit 00eb0e6378

View File

@ -215,7 +215,11 @@ func SetupStorageMiners(ctx context.Context, cs *store.ChainStore, sroot cid.Cid
store := &state.AdtStore{cst} store := &state.AdtStore{cst}
if err = st.PutSector(store, newSectorInfo); err != nil { if err = st.PutSector(store, newSectorInfo); err != nil {
return xerrors.Errorf("failed to prove commit: %v", err) return xerrors.Errorf("failed to put sector: %v", err)
}
if err := st.AddNewSectors(newSectorInfo.Info.SectorNumber); err != nil {
return xerrors.Errorf("failed to add NewSector: %w", err)
} }
return nil return nil