-
Notifications
You must be signed in to change notification settings - Fork 59
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
support padding out smaller files #536
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I built a stock v1.6.0 with the following modification:
- cherry-pick filecoin-project/lotus@cbe9bc316c2b9
diff --git a/go.mod b/go.mod
index 503e95c5d..2d2548ccc 100644
--- a/go.mod
+++ b/go.mod
@@ -31 +31 @@ require (
- github.com/filecoin-project/go-commp-utils v0.0.0-20201119054358-b88f7a96a434
+ github.com/filecoin-project/go-commp-utils v0.1.1-0.20210407220142-9d7f7aaf8c9c
@@ -35 +35 @@ require (
- github.com/filecoin-project/go-fil-markets v1.1.9
+ github.com/filecoin-project/go-fil-markets v1.1.10-0.20210407195421-65658e33ed64
🎉 OMG IT WORKED 🎉
Retrieval from a completely unrelated UNPATCHED client worked too
@whyrusleeping you are the hero we have but do not deserve
Codecov Report
@@ Coverage Diff @@
## master #536 +/- ##
==========================================
- Coverage 66.77% 66.14% -0.62%
==========================================
Files 56 56
Lines 4227 4249 +22
==========================================
- Hits 2822 2810 -12
- Misses 1155 1188 +33
- Partials 250 251 +1
Continue to review full report at Codecov.
|
@whyrusleeping we never shipped this way back for some reason: I merged it with latest master and made extra changes - please review / ack. I particularly dislike |
@whyrusleeping ok, the original thing that you wrtoe has been reviewed and good |
90d264c
to
354aee0
Compare
I can not reproduce this CI fail locally no matter what I do :( |
354aee0
to
75bdbfc
Compare
Okay, that looks good to me. |
* remove wrong peer check in push deal validation (#585) * remove wrong peer check in push deal validation * kill the pull side of peer id checking as well * fixup comments * Do not hex-encode CIDs in logs (#561) * On overloaded CI 10 seconds just isn't enough (#587) * support padding out smaller files (#536) * support padding out smaller files * Actually write out the padding - AP depends on it Co-authored-by: Peter Rabbitson <[email protected]> Co-authored-by: Whyrusleeping <[email protected]> Co-authored-by: Raúl Kripalani <[email protected]>
This allows me to take a 1MB file, pad it up to 512MB, and make a deal with a miner whose minimum piece size is 512MB