From 2ea567498cbacdbd93795e7b769a6fb25ce5af19 Mon Sep 17 00:00:00 2001 From: LexLuthr <88259624+LexLuthr@users.noreply.github.com> Date: Thu, 23 Feb 2023 19:59:47 +0530 Subject: [PATCH] fix: send more deal params to deal filters (#1213) * deal params to filter * bump agent version json --- storagemarket/dealfilter/cli.go | 2 +- storagemarket/provider_dealfilter.go | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/storagemarket/dealfilter/cli.go b/storagemarket/dealfilter/cli.go index 2839894d2..fbc9188f4 100644 --- a/storagemarket/dealfilter/cli.go +++ b/storagemarket/dealfilter/cli.go @@ -14,7 +14,7 @@ import ( ) const agent = "boost" -const jsonVersion = "2.1.0" +const jsonVersion = "2.2.0" type StorageDealFilter func(ctx context.Context, deal DealFilterParams) (bool, string, error) type RetrievalDealFilter func(ctx context.Context, deal retrievalmarket.ProviderDealState) (bool, string, error) diff --git a/storagemarket/provider_dealfilter.go b/storagemarket/provider_dealfilter.go index e535d4378..b6a047b34 100644 --- a/storagemarket/provider_dealfilter.go +++ b/storagemarket/provider_dealfilter.go @@ -48,6 +48,9 @@ func (p *Provider) getDealFilterParams(deal *types.ProviderDealState) (*dealfilt ClientDealProposal: deal.ClientDealProposal, DealDataRoot: deal.DealDataRoot, Transfer: deal.Transfer, + IsOffline: deal.IsOffline, + RemoveUnsealedCopy: !deal.FastRetrieval, + SkipIPNIAnnounce: !deal.AnnounceToIPNI, } // Clear transfer params in case it contains sensitive information