Skip to content

Commit

Permalink
Merge pull request #8737 from filecoin-project/feat/compute-wdpost-no…
Browse files Browse the repository at this point in the history
…-fault

feat: wdpost: Ignore faults in lotus-miner proving compute window-post
  • Loading branch information
arajasek authored May 27, 2022
2 parents 69d3542 + af510e2 commit bcdbb72
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions storage/wdpost_run.go
Original file line number Diff line number Diff line change
Expand Up @@ -595,6 +595,11 @@ func (s *WindowPoStScheduler) runPoStCycle(ctx context.Context, manual bool, di
if err != nil {
return nil, xerrors.Errorf("removing faults from set of sectors to prove: %w", err)
}
if manual {
// this is a check run, we want to prove faulty sectors, even
// if they are not declared as recovering.
toProve = partition.LiveSectors
}
toProve, err = bitfield.MergeBitFields(toProve, partition.RecoveringSectors)
if err != nil {
return nil, xerrors.Errorf("adding recoveries to set of sectors to prove: %w", err)
Expand Down

0 comments on commit bcdbb72

Please sign in to comment.