Skip to content

Commit

Permalink
fix: don't fail deals that have passed AP() but are not indexed (#1872)
Browse files Browse the repository at this point in the history
* don't fail AP() deals

* fix error
  • Loading branch information
LexLuthr authored Jan 16, 2024
1 parent 39d3ed7 commit baf26c6
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions storagemarket/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -449,10 +449,12 @@ func (p *Provider) Start() error {
continue
}

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

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

0 comments on commit baf26c6

Please sign in to comment.