Merge pull request #11002 from filecoin-project/feat/dealbounds-calc

sealing: Use only non-assigned deals when selecting snap sectors
This commit is contained in:
Aayush Rajasekaran 2023-06-28 16:13:33 -04:00 committed by GitHub
commit 30a9f63165
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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