diff --git a/storage/wdpost_run.go b/storage/wdpost_run.go index abe3e8f4c..8c71a458c 100644 --- a/storage/wdpost_run.go +++ b/storage/wdpost_run.go @@ -373,15 +373,15 @@ func (s *WindowPoStScheduler) runPost(ctx context.Context, di miner.DeadlineInfo return nil, xerrors.Errorf("getting sorted sector info: %w", err) } + if len(ssi) == 0 { + continue + } + sinfos = append(sinfos, ssi...) for _, si := range ssi { sidToPart[si.SectorNumber] = uint64(partIdx) } - if len(ssi) == 0 { - log.Warn("attempted to run windowPost without any sectors...") - return nil, xerrors.Errorf("no sectors to run windowPost on") - } params.Partitions[partIdx] = miner.PoStPartition{ Index: uint64(partIdx),