Skip to content

Commit baf26c6

Browse files
authored
fix: don't fail deals that have passed AP() but are not indexed (#1872)
* don't fail AP() deals * fix error
1 parent 39d3ed7 commit baf26c6

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

storagemarket/provider.go

+6-4
Original file line numberDiff line numberDiff line change
@@ -449,10 +449,12 @@ func (p *Provider) Start() error {
449449
continue
450450
}
451451

452-
// Fail deals if start epoch has passed
453-
if err := p.checkDealProposalStartEpoch(deal); err != nil {
454-
go p.failDeal(dh.Publisher, deal, err, false)
455-
continue
452+
// Fail deals if start epoch has passed and deal has still not been added to a sector
453+
if deal.Checkpoint < dealcheckpoints.AddedPiece {
454+
if serr := p.checkDealProposalStartEpoch(deal); serr != nil {
455+
go p.failDeal(dh.Publisher, deal, serr, false)
456+
continue
457+
}
456458
}
457459

458460
// If it's an offline deal, and the deal data hasn't yet been

0 commit comments

Comments
 (0)