From a78b29c077a30872b334f428a2640aa2e935cc7e Mon Sep 17 00:00:00 2001 From: simlecode <69969590+simlecode@users.noreply.github.com> Date: Mon, 2 Sep 2024 10:17:58 +0800 Subject: [PATCH] fix: Do not check the startepoch and endepoch of direct deal --- storageprovider/deal_assign_util.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/storageprovider/deal_assign_util.go b/storageprovider/deal_assign_util.go index 2286b2b5..fd56fcf7 100644 --- a/storageprovider/deal_assign_util.go +++ b/storageprovider/deal_assign_util.go @@ -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 {