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: correctly set cache path for empty sector update proofs #1557

Merged
merged 1 commit into from
Jan 25, 2022

Conversation

arajasek
Copy link
Contributor

@arajasek arajasek commented Jan 25, 2022

This PR is mostly intended to indicate where I think a bug exists

I'm not entirely sure whether this is the right fix, but something around the cache path here seems to be wrong, causing most users on SnapNet to be unable to upgrade their sectors (see filecoin-project/lotus#7968).

We may only want to be setting the path in some of the use cases for this method.

@cryptonemo
Copy link
Collaborator

@arajasek Good catch! It looks like the issue is that we get the t_aux from one place, and persist it to another (after encode/remove/etc). When re-instantiating after it's persisted to the new location, the cache path may be incorrect, so explicitly setting it at that time is preferred.

@cryptonemo cryptonemo merged commit 57c9651 into master Jan 25, 2022
@cryptonemo cryptonemo deleted the asr/empty-sector-fix branch January 25, 2022 13:19
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.

2 participants