genesis: Add sectors to NewSectors set
This commit is contained in:
parent
b941b29fe5
commit
00eb0e6378
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user