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

For retrievals don't round down payments to interval lower bound #549

Closed
wants to merge 2 commits into from

Conversation

dirkmc
Copy link
Contributor

@dirkmc dirkmc commented May 31, 2021

Will fix filecoin-project/lotus#6297 (when bubbled up to lotus)

When sending a payment voucher, we were rounding down the amount to the lower bound of the payment interval, so that payment would always proceed in exact intervals.
This PR changes the behaviour not to round down: the client will send a voucher that pays for all data that has been received (which may be more than the lower bound of the payment interval)

@dirkmc dirkmc changed the title For retrievals don't round down payments to lower interval bound For retrievals don't round down payments to interval lower bound May 31, 2021
@codecov-commenter
Copy link

Codecov Report

Merging #549 (40a910a) into master (5b6d12f) will not change coverage.
The diff coverage is 80.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #549   +/-   ##
=======================================
  Coverage   65.77%   65.77%           
=======================================
  Files          56       56           
  Lines        3634     3634           
=======================================
  Hits         2390     2390           
  Misses       1009     1009           
  Partials      235      235           
Impacted Files Coverage Δ
retrievalmarket/impl/dtutils/dtutils.go 79.44% <50.00%> (ø)
storagemarket/impl/dtutils/dtutils.go 75.00% <50.00%> (ø)
retrievalmarket/impl/clientstates/client_states.go 94.34% <100.00%> (ø)

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 5b6d12f...40a910a. Read the comment docs.

@aarshkshah1992 aarshkshah1992 requested review from hannahhoward and aarshkshah1992 and removed request for hannahhoward May 31, 2021 14:59
@dirkmc
Copy link
Contributor Author

dirkmc commented Jun 8, 2021

Merged as part of #550

@dirkmc dirkmc closed this Jun 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants