Fix bug when run windowPost
This commit is contained in:
parent
19ee2a021b
commit
8d28b72741
@ -373,15 +373,19 @@ 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")
|
||||
}
|
||||
//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),
|
||||
|
Loading…
Reference in New Issue
Block a user