Skip to content

Commit

Permalink
Merge pull request #6472 from filecoin-project/asr/backport
Browse files Browse the repository at this point in the history
failed sectors should be added into res correctly
  • Loading branch information
magik6k authored Jun 14, 2021
2 parents d3594a0 + 4da3093 commit 88c4999
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion extern/storage-sealing/commit_batch.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,8 @@ func (b *CommitBatcher) processBatch(cfg sealiface.Config) ([]sealiface.CommitBa
break
}

res.Sectors = append(res.Sectors, id)

sc, err := b.getSectorCollateral(id, tok)
if err != nil {
res.FailedSectors[id] = err.Error()
Expand All @@ -254,7 +256,6 @@ func (b *CommitBatcher) processBatch(cfg sealiface.Config) ([]sealiface.CommitBa

collateral = big.Add(collateral, sc)

res.Sectors = append(res.Sectors, id)
params.SectorNumbers.Set(uint64(id))
infos = append(infos, p.info)
}
Expand Down

0 comments on commit 88c4999

Please sign in to comment.