Skip to content

Commit

Permalink
Merge pull request #539 from ipfs-force-community/fix/assign-direct-deal
Browse files Browse the repository at this point in the history
fix: Do not check the startepoch and endepoch of direct deal
  • Loading branch information
simlecode authored Sep 2, 2024
2 parents b555a95 + a78b29c commit 4fd1901
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 4fd1901

Please sign in to comment.