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

fix: update recovery for non-car files #1697

Merged
merged 3 commits into from
Sep 13, 2023
Merged

Conversation

LexLuthr
Copy link
Collaborator

Fixes #1693
This PR uses UnsealSectorAt() to get a reader and directly feeds the reader to the commP writer. This is the same mechanism as getting a full piece from booster-HTTP and calculating commP on it.

cmd/boostd/recover.go Outdated Show resolved Hide resolved
cmd/boostd/recover.go Show resolved Hide resolved
cmd/boostd/recover.go Outdated Show resolved Hide resolved
cmd/boostd/recover.go Outdated Show resolved Hide resolved
@LexLuthr LexLuthr merged commit 5be7b6b into feat/noncar-files Sep 13, 2023
20 checks passed
@LexLuthr LexLuthr deleted the fix/recovery-tool branch September 13, 2023 10:06
LexLuthr added a commit that referenced this pull request Oct 9, 2023
* non car recovery commp

* defer reader close, cleanup

* move defer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants