Merge pull request #2054 from filecoin-project/fix/wdpost-panic

wdpost: Don't return nil from checkSectors
This commit is contained in:
Łukasz Magiera 2020-06-17 19:48:09 +02:00 committed by GitHub
commit 512bbb99ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -99,10 +99,6 @@ func (s *WindowPoStScheduler) checkSectors(ctx context.Context, check *abi.BitFi
log.Warnw("Checked sectors", "checked", len(tocheck), "good", len(sectors))
if len(sectors) == 0 { // nothing to recover
return nil, nil
}
sbf := bitfield.New()
for s := range sectors {
(&sbf).Set(uint64(s.Number))