This commit is contained in:
Łukasz Magiera 2020-07-14 19:10:37 +02:00
parent af87b9aa98
commit 0ccc9f65a6
3 changed files with 12 additions and 13 deletions

View File

@ -157,7 +157,6 @@ func (s *WindowPoStScheduler) checkNextRecoveries(ctx context.Context, dlIdx uin
})
}
if len(params.Recoveries) == 0 {
if faulty != 0 {
log.Warnw("No recoveries to declare", "deadline", dlIdx, "faulty", faulty)
@ -292,7 +291,7 @@ func (s *WindowPoStScheduler) runPost(ctx context.Context, di miner.DeadlineInfo
defer declWait.Wait()
declWait.Add(1)
go func(){
go func() {
defer declWait.Done()
// check faults / recoveries for the *next* deadline. It's already too