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: don't check for t_aux when proving #7011

Merged
merged 1 commit into from
Aug 11, 2021
Merged

fix: don't check for t_aux when proving #7011

merged 1 commit into from
Aug 11, 2021

Conversation

Stebalien
Copy link
Member

We don't need it (I think?).

@Stebalien Stebalien requested a review from a team as a code owner August 9, 2021 17:13
@Stebalien
Copy link
Member Author

Note: this needs a very careful review (by @cryptonemo or @porcuquine ?), and ideally a quick test in a dev net with real sectors.

Copy link

@porcuquine porcuquine left a comment

Choose a reason for hiding this comment

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

t_aux is 'temporary aux'. p_aux is persistent. You need p_aux for PoST, but you only need t_aux until the vanilla PoRep proof has been created. I can't tell from the context here when the check happens, so I can't tell whether it can be removed here.

It's not true that you never need t_aux, but the need is only temporary. If you want to gain high confidence in this change in a pragmatic way, try changing the check to instead delete that file, then see if you can get all the way to a verifying PoRep. If so, then it's safe.

The risk is that you remove the check and observe that this doesn't break anything in testing. However, if the file is still there (though unchecked), this might be a false negative. In that case, you would have failed to exercise the check in the case that it was needed.

(Alternately, if you want to test the candidate code directly, you can enhance the test to ensure the file has been deleted before the check is run — but in that case, make sure you don't do that before it is even generated for the sector.)

@Stebalien
Copy link
Member Author

I can't tell from the context here when the check happens, so I can't tell whether it can be removed here.

Digging through the code, this check is only for window post.

@porcuquine
Copy link

porcuquine commented Aug 9, 2021

Digging through the code, this check is only for window post.

Based on that assumption, and the general statements I made above, this should be safe to remove then. Again, the temporary/persistent distinction pertains exactly to whether the auxiliary data is required to complete PoRep only, or over time indefinitely as checked by PoST.

@Stebalien
Copy link
Member Author

Ok, this definitely fixes #6998.

@Stebalien Stebalien requested a review from Kubuxu August 10, 2021 21:33
@Stebalien Stebalien merged commit 498644a into master Aug 11, 2021
@Stebalien Stebalien deleted the fix/no-t-aux branch August 11, 2021 18:28
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.

3 participants