Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validate client's DataCap for verified deals #307

Merged
merged 1 commit into from
Jul 2, 2020

Conversation

ingar
Copy link
Contributor

@ingar ingar commented Jul 1, 2020

Summary

For verified deal proposals, reject the deal if the verifreg.DataCap for the client isn't large enough.

Resolves #286

@hannahhoward
Copy link
Collaborator

This looks done-ish -- is it done?

@ingar ingar marked this pull request as ready for review July 1, 2020 22:29
@ingar ingar requested a review from hannahhoward July 1, 2020 22:29
@ingar ingar force-pushed the feat/verified-deal-validation branch from a5d35f6 to b25ee9d Compare July 1, 2020 22:34
@codecov-commenter
Copy link

codecov-commenter commented Jul 1, 2020

Codecov Report

Merging #307 into master will decrease coverage by 0.01%.
The diff coverage is 89.48%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #307      +/-   ##
==========================================
- Coverage   63.52%   63.52%   -0.00%     
==========================================
  Files          41       41              
  Lines        2574     2582       +8     
==========================================
+ Hits         1635     1640       +5     
- Misses        818      820       +2     
- Partials      121      122       +1     
Impacted Files Coverage Δ
...oragemarket/impl/providerstates/provider_states.go 87.69% <89.48%> (+0.51%) ⬆️
retrievalmarket/impl/blockio/traverser.go 68.89% <0.00%> (-3.33%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 57ff8d6...2a40ef1. Read the comment docs.

@hannahhoward hannahhoward force-pushed the feat/verified-deal-validation branch from b25ee9d to 2a40ef1 Compare July 2, 2020 14:10
Copy link
Collaborator

@hannahhoward hannahhoward left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@hannahhoward hannahhoward merged commit f33b442 into master Jul 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Provider Rejects Verified Deals At Proposal Time
3 participants