Merge pull request #8737 from filecoin-project/feat/compute-wdpost-no-fault

feat: wdpost: Ignore faults in lotus-miner proving compute window-post
This commit is contained in:
Aayush Rajasekaran 2022-05-27 11:03:01 -04:00 committed by GitHub
commit bcdbb7296d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)