Skip to content

Commit

Permalink
fix: send more deal params to deal filters (#1213)
Browse files Browse the repository at this point in the history
* deal params to filter

* bump agent version json
  • Loading branch information
LexLuthr authored and LexLuthr committed Feb 24, 2023
1 parent 88f6e9e commit 2ea5674
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion storagemarket/dealfilter/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 3 additions & 0 deletions storagemarket/provider_dealfilter.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2ea5674

Please sign in to comment.