Skip to content

Commit

Permalink
fix: fix expired check
Browse files Browse the repository at this point in the history
  • Loading branch information
hunjixin committed Nov 4, 2022
1 parent 6ed6295 commit 80c05cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storageprovider/deal_tracker.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func (dealTracker *DealTracker) checkPreCommitAndCommit(ctx metrics.MetricsCtx,
curHeight := ts.Height()

for _, deal := range deals {
if deal.Proposal.StartEpoch > curHeight {
if deal.Proposal.StartEpoch < curHeight {
err = dealTracker.storageRepo.UpdateDealStatus(ctx, deal.ProposalCid, storagemarket.StorageDealExpired, "")
if err != nil {
return fmt.Errorf("update deal %d status to of miner %s expired %w", deal.DealID, addr, err)
Expand Down

0 comments on commit 80c05cc

Please sign in to comment.