Skip to content

Commit

Permalink
fix: Do not check the startepoch and endepoch of direct deal
Browse files Browse the repository at this point in the history
  • Loading branch information
simlecode committed Sep 2, 2024
1 parent b555a95 commit a78b29c
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions storageprovider/deal_assign_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,13 +252,6 @@ func (ps *dealAssigner) pickAndAlignDirectDeal(ctx context.Context, deals []*mty
picked := make([]*mtypes.DirectDealInfo, 0, len(deals))
for di := range deals {
deal := deals[di]
if spec.StartEpoch > 0 && deal.StartEpoch <= spec.StartEpoch {
continue
}

if spec.EndEpoch > 0 && deal.EndEpoch >= spec.EndEpoch {
continue
}

// https://github.com/filecoin-project/builtin-actors/blob/c0aed11801cb434c989695ad67721c410b9ada33/actors/verifreg/src/lib.rs#L1056-L1071
if spec.SectorExpiration != nil {
Expand Down

0 comments on commit a78b29c

Please sign in to comment.