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:
commit
30a9f63165
@ -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{
|
||||||
|
Loading…
Reference in New Issue
Block a user