Skip to content

Commit

Permalink
Merge pull request #11002 from filecoin-project/feat/dealbounds-calc
Browse files Browse the repository at this point in the history
sealing: Use only non-assigned deals when selecting snap sectors
  • Loading branch information
arajasek committed Jun 28, 2023
2 parents 2df1697 + c79acf9 commit 30a9f63
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions storage/pipeline/input.go
Original file line number Diff line number Diff line change
Expand Up @@ -630,6 +630,10 @@ func (m *Sealing) pendingPieceEpochBounds() []pieceBound {
boundsByEpoch := map[abi.ChainEpoch]*pieceBound{}

for ppi, piece := range m.pendingPieces {
if piece.assigned {
continue
}

// start bound on deal end
if boundsByEpoch[piece.deal.DealProposal.EndEpoch] == nil {
boundsByEpoch[piece.deal.DealProposal.EndEpoch] = &pieceBound{
Expand Down

0 comments on commit 30a9f63

Please sign in to comment.