sealing: Use only non-assigned deals when selecting snap sectors

This commit is contained in:
Łukasz Magiera 2023-06-23 18:40:46 +02:00
parent a2431ff70a
commit c79acf9ca4

View File

@ -630,6 +630,10 @@ func (m *Sealing) pendingPieceEpochBounds() []pieceBound {
boundsByEpoch := map[abi.ChainEpoch]*pieceBound{} boundsByEpoch := map[abi.ChainEpoch]*pieceBound{}
for ppi, piece := range m.pendingPieces { for ppi, piece := range m.pendingPieces {
if piece.assigned {
continue
}
// start bound on deal end // start bound on deal end
if boundsByEpoch[piece.deal.DealProposal.EndEpoch] == nil { if boundsByEpoch[piece.deal.DealProposal.EndEpoch] == nil {
boundsByEpoch[piece.deal.DealProposal.EndEpoch] = &pieceBound{ boundsByEpoch[piece.deal.DealProposal.EndEpoch] = &pieceBound{