wdpost: Correctly prove 0 sectors

This commit is contained in:
Łukasz Magiera 2020-07-17 16:47:16 +02:00
parent 56d13534b4
commit 4b74aa5768

View File

@ -389,6 +389,11 @@ func (s *WindowPoStScheduler) runPost(ctx context.Context, di miner.DeadlineInfo
} }
} }
if len(sinfos) == 0 {
// nothing to prove..
return nil, errNoPartitions
}
log.Infow("running windowPost", log.Infow("running windowPost",
"chain-random", rand, "chain-random", rand,
"deadline", di, "deadline", di,